Highlighting a tab
-
I like the horizontal nav bar at binarybonsai.com. I’m especially interested in getting the current tab to highlight.
I understand how the CSS works (described in this post) using an ID selector on the body tag. The only thing is, I’m not exactly clear on what PHP I need to use in header.php to get the IDs to be generated automagically. (I assume I don’t need a different header for each page. Everything else is way too elegant for that to be the case.)
For my purposes, I’m interested in using several tabs for different Pages. Basically, all I need someone to point me to is a function that will give some kind of unique identifier for the current Page, and I can figure out the if/then/else or case/switch or whatever.
Anyone? Thanks in advance.
The topic ‘Highlighting a tab’ is closed to new replies.