PDA

View Full Version : Custom Footer Question


guy
Apr-29-2008, 07:04 AM
I have a custom footer that shows on all my SM pages. Is it possible to have a different footer for all pages of a specific category or sub category in the same way that you can have different headers for different categories?

Thanks.

Allen
Apr-29-2008, 07:14 AM
I have a custom footer that shows on all my SM pages. Is it possible to have a different footer for all pages of a specific category or sub category in the same way that you can have different headers for different categories?

Thanks.
I don't see a "custom footer"? Are you referring to your navbar?

guy
Apr-29-2008, 08:29 AM
I don't see a "custom footer"? Are you referring to your navbar?

Perhaps I used the wrong term but I have this inserted above the SM footer:

__________________________________________________ ______________________
Unless otherwise stated all photos are © Guy E Meacham

I'd like to change this to something else in a couple of sub categories. but keep this as the default.

Thanks.

Allen
Apr-29-2008, 08:46 AM
Perhaps I used the wrong term but I have this inserted above the SM footer:

__________________________________________________ ______________________
Unless otherwise stated all photos are © Guy E Meacham

I'd like to change this to something else in a couple of sub categories. but keep this as the default.

Thanks.



Create multiple footer divs.

<div id="myFooterALL">...

<div id="myFooter2">...

<div id="myFooter3">...

Then control them with CSS.

/* all pages */
#myFooterALL {... }
#myFooter2 {display: none;}
#myFooter3 {display: none;}

/* specific categories */
.category_Travel #myFooter1 {display: none;}
.category_Travel #myFooter2 {display: block;}

.subcategory_Climbs #myFooter1 {display: none;}
.subcategory_Climbs #myFooter3 {display: block;}

guy
Apr-30-2008, 08:58 AM
Thanks Allen,

I'll play around with this.