CSS placement
jjesp
Registered Users Posts: 21 Big grins
As fairly new to CSS customization on SmugMug, just a little question.
Where is the best way to place your CSS code? At first I just put my CSS in a placeholder on the entire site. Now I have moved it to the theme instead. Is this fine?
I think that every customization regarding UI should be placed in the theme? And other more site specific on the entire site (and page specific code on the individual pages).
Are there any pros and cons?
Thanks in advance.
Where is the best way to place your CSS code? At first I just put my CSS in a placeholder on the entire site. Now I have moved it to the theme instead. Is this fine?
I think that every customization regarding UI should be placed in the theme? And other more site specific on the entire site (and page specific code on the individual pages).
Are there any pros and cons?
Thanks in advance.
Jan Jespersen Photography
http://www.janjespersenphotography.dk
http://www.janjespersenphotography.dk
0
Comments
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
There's no single answer but I'd recommend putting it where it's most applicable and easiest to find. It's easy to lose code when it's all lumped together in one place.
For me, code that applies to the entire site goes into the theme, but code that is applicable to galleries goes into a CSS content block in all galleries. Same with all folders, etc. Code only applicable to a particular page goes in a content block on that page.
The other reason to use CSS content blocks instead of theme CSS is it's a lot quicker to get to. It takes a lot more clicks to get to theme CSS. I have continually moved code out of there over time because of that annoyance.
Dave
http://www.janjespersenphotography.dk