|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Enginerd
|
Password Page CSS
I have two headers on my site. One is mine and the other is for a business for which I am the webmaster. I have been successful in keeping the headers on the correct galleries, but I just noticed that my password protected galleries have both header and footers on them and this is no good. My other customization looks something liks this:
.homepage #hanyok_banner{display: block;} .homepage #redturtle_banner{display: none;} .category #hanyok_banner{display: block;} .category #redturtle_banner{display: none;} .category_Gallery #redturtle_banner{display: none;} .category_Personal #redturtle_banner{display: none;} .category_Other #redturtle_banner{display: none;} I imagine I would have to do something similar to make sure the password prompt pages only show the header/footer I want them to show, but I'm unsure of the needed wording(i.e. .homepage, .category). I would think it might be something like .promt or .category_prompt Any suggestions? Thanks, Lauren Hanyok Photography www.hanyokphotography.smugmug.com (to see what I'm talking about, please go to one of the password prompt pages for my protected galleries and you'll see my header and a space underneath it which, if you click it, it goes to the business-photo site. Also, you can see two footers at the bottom of the page) |
|
|
|
|
#2
|
|
|
Scripting dude-volunteer
|
Smugmug makes this very difficult because they do not give you any unique CSS in the body tag for a password screen. It is certainly an oversight that we've told them about and I was hoping they would have already fixed it, but nothing was changed in this area in the recent changes to the password screen.
As it is now, there is no way to tell which category you are in when the password prompt comes up. That means there's no way to determine which banner should be shown. I would suggest that you just change your CSS to that the default condition is that no banner shows instead of the current default condition that both show. Structurally, you would do that by putting this CSS first: #redturtle_footer, #hanyok_footer, #redturtle_banner, #hanyok_banner {display:none;} And then, manually showing the right header/footer in each category you have with something like you are already doing. This will mean manual maintenace every time you add a new category.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|