External Style Sheet

Post Reply
dbgoldman
Posts: 2
Joined: 02 May 2010, 17:18

External Style Sheet

Post by dbgoldman » 02 May 2010, 17:26

Is it possible to set the program to create an External Style Sheet for all the pages of a new gallery?
Thanks for any of your thoughts and/or help with this.
David

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: External Style Sheet

Post by Maksym » 05 May 2010, 10:20

It is possible to make the program use external CSS file instead of creating a CSS file for each gallery. You have to select the template you are going to use and open it in the built-in template editor. Then in the HTML text of "Thumbnails pages" template replace a line that references to the local CSS file, like this one:

<link rel="stylesheet" type="text/css" href="[#thumbspage.template_files_folder#]style.css" />

with the following:

<link rel="stylesheet" type="text/css" href="http://www.your-website.com/css/style.css" />

Also you'll have to replace the CSS reference in the HTML text of "Image pages" template. After that you have to make sure that the referenced CSS file is uploaded to your website. Also you may have to delete the local CSS file from the template folder if the template you are going to use has it.

dbgoldman
Posts: 2
Joined: 02 May 2010, 17:18

Re: External Style Sheet

Post by dbgoldman » 11 May 2010, 17:08

Thank you, Maxim, I'll give this a try.
David

Post Reply