I’m creating a theme that will be used on several sites, with different number of pages etc. I want my navigation tabs to highlight when the reader is on that specific page, got ready “current” class, but can’t find the way to apply it to the dynamically created pages.
wp_list_pages()template tag to create the
ulwith navigation, so every page made in backend will be displayed in navigation automatically. I saw a screencast by Chris Coyer but it requires the navigation to be hardcoded into the header.
Is there any way to achieve the same effect using template tag to create navigation?
- The topic ‘How to highlight current nav tab?’ is closed to new replies.