PDA

View Full Version : Mavbar In Categories & Sub-cat ??? (help)


MikaGrin
Oct-13-2009, 04:43 PM
Hi, is it possible to put a navigation bar or html into specific categories (http://michael-bastia.smugmug.com/Michael-Bastia-photography-web) and sub-categories (http://michael-bastia.smugmug.com/Michael-Bastia-photography-web/les-galeries-du-site-MBP) of my site, How can i do that?

Thank you very much, Mika
(http://michael-bastia.smugmug.com/)

jfriend
Oct-13-2009, 05:21 PM
You simply define multiple navbars in your header, give them separate CSS IDs and then you can hide/show each navbar with CSS in the right context such that the desired navbar shows in a specific category.

MikaGrin
Oct-13-2009, 05:36 PM
Thank you JFriend, but the thing is than i absolutly want the same main Nav-Bar showing at all time everywhere in my site header, excuse my english maybe i express myself badly.

In fact i want a 2th Nav-Bar (or an under Nav-Bar) what ever you want call it, i want it to appear (just between my main nav-bar and a category Box for exemple) in some of my categories and sub-cat positioned under my MAIN nav-bar. Is it possible lake that, how can i do it?

Thank you so much JFriend, Mika (http://michael-bastia.smugmug.com/)

jfriend
Oct-13-2009, 06:06 PM
Put two navbars in your custom header exactly how you want them in the category, then hide the lower one with CSS everywhere except in your desired category.

HTML:

<div id="navbarMain"> .... </div>
<div id="navbarSpecial"> ... </div>


CSS:

#navbarSpecial {display:none;}
.category_Sports #navbarSpecial {display:block;}

MikaGrin
Oct-13-2009, 06:53 PM
Put two navbars in your custom header exactly how you want them in the category, then hide the lower one with CSS everywhere except in your desired category.

HTML:

<div id="navbarMain"> .... </div>
<div id="navbarSpecial"> ... </div>


CSS:

#navbarSpecial {display:none;}
.category_Sports #navbarSpecial {display:block;}


Thank's alot, Mika.