PDA

View Full Version : Custom banners for each Category


GaryBakker
Apr-08-2007, 11:03 AM
I've created custom banners for each of my Categories. It is all working fine except:

a) Popular Photos. Is this a category? If so, what is its name?

b) About Us. Actually this is a gallery (not a category). Can I have a customer banner just for a single gallery?

Thanks.

PS - Andy, if you see this, I want you to know I like your special Easter image. Nicely done.

Andy
Apr-08-2007, 11:15 AM
I've created custom banners for each of my Categories. It is all working fine except:

a) Popular Photos. Is this a category? If so, what is its name?
No, not a category. But you can target it like this:

.popularGallery #myheader ....[/quote]

b) About Us. Actually this is a gallery (not a category). Can I have a customer banner just for a single gallery?

Thanks.[/quote]
Same deal:

.gallery_XXXXXX #myheader ....

PS - Andy, if you see this, I want you to know I like your special Easter image. Nicely done.


:wave :D

GaryBakker
Apr-08-2007, 11:27 AM
Thanks Andy.

Popular photos banner works fine.

But I can't get my other gallery to work.
.gallery_2642510 #my_banner {
background: url(http://bakkers.smugmug.com/photos/141874710-O.jpg) no-repeat;
}
I also tried its name, but no luck:.gallery_AboutUs #my_banner {
background: url(http://bakkers.smugmug.com/photos/141874710-O.jpg) no-repeat;
}
Suggestion?

Barb
Apr-08-2007, 11:41 AM
Thanks Andy.

Popular photos banner works fine.

But I can't get my other gallery to work.

I also tried its name, but no luck:
Suggestion?
Hi,

Replace what you have for that gallery banner code with this:

.gallery_2642510 #my_banner {
background: url(http://bakkers.smugmug.com/photos/141874710-O.jpg) no-repeat !important;
}


See if that will force that particular banner.

GaryBakker
Apr-08-2007, 12:02 PM
Hi,
See if that will force that particular banner.

It worked. The additional code you suggested must be !important. :D

Thanks Barb. And Happy Easter!