thetoolman
Member
Posted 3 years ago #
Hi there,
I am trying to set up may navigation to highlight the current page. I have found this:
http://codex.wordpress.org/Dynamic_Menu_Highlighting
But it only lets me set the pages. What happens if I add a new page via admin? I don't want to keep going into the code and adding a new css/html code.
Any suggestions?
If you're using the wp_list_pages to create your page navigation, it will add a class current_page_item to the list item corresponding to the page you're viewing.
Then in your CSS, you can add a you-are-here look to the li.current_page_item (or the link within it).
Make sense?
petah2014
Member
Posted 3 years ago #
do you know if there's a class add for wp_get_archives() ? If not how should i attack making the get archives dynamically highlighted?