WP navigation
-
Howdy,
I’ve created a static site, with a page for blog posts. The WordPress navigation I’ve created using the function.
<?php wp_list_pages('title_li='); ?>
My navigation uses an active class for all the pages which works fine (current_page_item). When I view the permalink for each blog I’m trying to get the navigation to keep the class – for the page called ‘blog’ – even though we’re not really still on the blog page.
That is to say: when I’m looking at anything to do with the blog page – all the individual entries and comments etc – I still want the navigation to give the page ‘blog’ the current_page_item class.
Any help greatly appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP navigation’ is closed to new replies.