Problem with 'active' states in navigation and single blog posts
-
I am using the wp_list_pages() function to display the navigation for a client’s website.
One of the pages is called ‘Blog’, and this exists as a link within the navigation.
What I need to do is highlight this link whenever a single blog post is being viewed.
The only way I can think of acheiving it is with JavaScript (although it would be good if there was a way do hack WP to get it working) but then I would probably need to get the permalinks to display like so:
www.example.com/blog/sample-post01/
Does anyone know of a way to do that?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with 'active' states in navigation and single blog posts’ is closed to new replies.