Forums
Forums / Themes and Templates / Styling Navigation Dynamically
(@jon-owc)
13 years, 8 months ago
Hey guys,
Weather is wonderful over here, hopefully you can say the same ;). I’m trying to dynamically style my navigation bar. Here is the goal:
If the current page is on the navigation it is styled. The rest of the links are not. Accomplished
If the current page is not on the navigation, I want to style the Home page button instead. I’m struggling!
A nudge in the right direction would be greatly appreciated!
I have figured this out myself. The code isn’t amazingly pretty or cutting edge (thanks codex for the inspiration). Anyways here’s a link for those who might be curious or find it useful:
http://pastebin.com/C8fEyfiM
The topic ‘Styling Navigation Dynamically’ is closed to new replies.