PDA

View Full Version : Mutilple Banner issue I seem not able to correct


cuda70
Nov-17-2009, 12:45 PM
I have had banners for different categories for a while now. It seem to not be able to add the banners to new categories which I had one for Boy Scouts, One for Girl scout and one for Mandracchia/Sawmill_Intermediate_School_2009-2010
I am not sure if it is me. I have not to change anything for a while. I see smugmug has made new changes. Should I change most of this stuff to stream line the code? site is http://jvalsamis.smugmug.com/
Thanks for any help possible

Here is what it looks like

#bioBox .photo {display: none;}
#bioText {display: none;}
#userBio {text-align: center;}
#my_banner {
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://jvalsamis.smugmug.com/photos/303574238_KC8JP-O.png) no-repeat;
}
#mystatcounter {text-align: center;}

#myterms {text-align: center;}


.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}

.galleries #bioBox {
display: none;
}

.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}

.loggedIn .homepage #galleriesBox,
.loggedIn .homepage #categoriesBox {
display: block;
}

#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 3em;
color: #fff;
background-color: #333333;
}

#navcontainer ul li a:hover {
color: #fff;
background-color: #0000CC;
}


.category_Mandracchia/Sawmill_Intermediate_School_2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/414412619_Eeb4E-O.png) no-repeat;
}

.category_Boy-Scouts-2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png) no-repeat;
}


.category_Boy-Scouts-2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png) no-repeat;
}
.category_Girl_Scouts_2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/410257450_hxK95-L.png) no-repeat;
}

.gallery_6589618 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/419835656_Z5Kip-L.png) no-repeat;
}


/* html only page for gallery 6597559 */
.gallery_6597559 .nophotos { display: none; }

.gallery_4948865 .photoSizes {display: none;}

.gallery_6659958 .photoSizes {display: none;}

denisegoldberg
Nov-17-2009, 01:45 PM
Your CSS is referring to categories, but the names you have specified are not category names:
.category_Mandracchia/Sawmill_Intermediate_School_2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...19_Eeb4E-O.png (http://jvalsamis.smugmug.com/photos/414412619_Eeb4E-O.png)) no-repeat;
}

.category_Boy-Scouts-2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}

.category_Boy-Scouts-2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}
.category_Girl_Scouts_2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...50_hxK95-L.png (http://jvalsamis.smugmug.com/photos/410257450_hxK95-L.png)) no-repeat;
}

You need to specify the correct category or subcategory names:

.category_Sawmill2010
.category_Boy-Scouts
.category_Girl-Scouts
.subcategory_Girl_Scouts_2008-2009
.subcategory_Boy_Scout_2008-2009
.subcategory_Boy_Scout_2009-2010
--- Denise

cuda70
Nov-18-2009, 09:53 AM
Your CSS is referring to categories, but the names you have specified are not category names:
.category_Mandracchia/Sawmill_Intermediate_School_2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...19_Eeb4E-O.png (http://jvalsamis.smugmug.com/photos/414412619_Eeb4E-O.png)) no-repeat;
}

.category_Boy-Scouts-2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}

.category_Boy-Scouts-2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}
.category_Girl_Scouts_2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...50_hxK95-L.png (http://jvalsamis.smugmug.com/photos/410257450_hxK95-L.png)) no-repeat;
}
You need to specify the correct category or subcategory names:

.category_Sawmill2010
.category_Boy-Scouts
.category_Girl-Scouts
.subcategory_Girl_Scouts_2008-2009
.subcategory_Boy_Scout_2008-2009
.subcategory_Boy_Scout_2009-2010
--- Denise

ok let me try that

cuda70
Nov-18-2009, 11:53 AM
Your CSS is referring to categories, but the names you have specified are not category names:
.category_Mandracchia/Sawmill_Intermediate_School_2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...19_Eeb4E-O.png (http://jvalsamis.smugmug.com/photos/414412619_Eeb4E-O.png)) no-repeat;
}

.category_Boy-Scouts-2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}

.category_Boy-Scouts-2009-2010 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...21_aXPT4-L.png (http://jvalsamis.smugmug.com/photos/410262521_aXPT4-L.png)) no-repeat;
}
.category_Girl_Scouts_2008-2009 #my_banner {
background: url(http://jvalsamis.smugmug.com/photos/...50_hxK95-L.png (http://jvalsamis.smugmug.com/photos/410257450_hxK95-L.png)) no-repeat;
}
You need to specify the correct category or subcategory names:

.category_Sawmill2010
.category_Boy-Scouts
.category_Girl-Scouts
.subcategory_Girl_Scouts_2008-2009
.subcategory_Boy_Scout_2008-2009
.subcategory_Boy_Scout_2009-2010
--- Denise



ok How do I check for album category since smugmug switch to Gallery nick naming album?
I followed this help section and according to this It should work.
Could the problem be the shortcut naming of albums?
http://dgrin.smugmug.com/gallery/1932865

denisegoldberg
Nov-18-2009, 12:02 PM
ok How do I check for album category since smugmug switch to Gallery nick naming album? I followed this help section and according to this It should work. Could the problem be the shortcut naming of albums?
http://dgrin.smugmug.com/gallery/1932865
No, I don't believe the problem is nicenames. Your CSS does not even come close to the names of your categories and subcategories. You specified your CSS as .category, but you used the name of the subcategory in most cases. If you want to use a subcategory, your CSS must start with .subcategory_ as in the examples of the starting part of the CSS in my first post.

You can always grab the URL from the title bar in your browser.

Open the category or subcategory and copy the URL from the title bar. Use that as the starting point. You can pick up the category or subcategory name from the URL.

For example,
Boy Scouts category, http://jvalsamis.smugmug.com/Boy-Scouts, would be represented in CSS as .category_Boy-Scouts.


--- Denise