View Full Version : Overriding SmugMug Themes?
Shanahan
Oct-24-2005, 05:11 PM
I'm attempting to tweek a SmugMug "theme" with some of my own styles (font color, font size, hiding some elements, etc.)? Below is the reply I received from SmugMug support...
"The user cobranding is listed first on the page, then the theme cobranding. So if there are any shared styles between the two - the theme will always win. The way around this is for you to view the source, copy the theme’s CSS, then paste it in your own cobranding and change what you need."
...My question is if the SmugMug theme css styles always follows my cobranding styles then my styles are essentially ignored. Is there anyway to get my styles to come last in the style sheet so they are implemented rather than overridden? Do I not use a theme? Do I use the cobranding area to load the css?
Thanks,
Brian
jfriend
Oct-24-2005, 07:17 PM
I'm attempting to tweek a SmugMug "theme" with some of my own styles (font color, font size, hiding some elements, etc.)? Below is the reply I received from SmugMug support...
"The user cobranding is listed first on the page, then the theme cobranding. So if there are any shared styles between the two - the theme will always win. The way around this is for you to view the source, copy the theme’s CSS, then paste it in your own cobranding and change what you need."
...My question is if the SmugMug theme css styles always follows my cobranding styles then my styles are essentially ignored. Is there anyway to get my styles to come last in the style sheet so they are implemented rather than overridden? Do I not use a theme? Do I use the cobranding area to load the css?
Thanks,
Brian It would be great if Smugmug allowed you to have some "post theme" easy customization per gallery. But, for now, the only way I know of to customize a theme is to copy the CSS from the theme and paste it into your own theme that you create. You can then add/modify it in your own theme and use it in any of your galleries.
Mike Lane
Oct-24-2005, 09:29 PM
It would be great if Smugmug allowed you to have some "post theme" easy customization per gallery. But, for now, the only way I know of the customize a theme is to copy the CSS from the theme and paste it into your own theme that you create. You can then add/modify it in your own theme and use it in any of your galleries.
No need to go to those lengths. All you need to do is to win the specificity wars.
http://www.molly.com/2005/10/06/css2-and-css21-specificity-clarified/
If you are more specific than the property that you are trying to override then you will win out even if your property comes first in the document.
jfriend
Oct-24-2005, 10:00 PM
No need to go to those lengths. All you need to do is to win the specificity wars.
http://www.molly.com/2005/10/06/css2-and-css21-specificity-clarified/
If you are more specific than the property that you are trying to override then you will win out even if your property comes first in the document. Cool, that's a nice quick reference on how specificity works in CSS2.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.