Can't target Current Page
-
I’m trying to target the current page item so I can highlight the navigation when the user is on the given page. I’m not sure if my error is the way that I’ve installed the navigation because when I view the code in firebug I do not see the current_page_item attached to the given page.
This is what calls my menu :
<?php wp_nav_menu(array('menu' => 'Main Nav Menu')); ?>
This is what is in my functions:
`if (function_exists(‘register_nav_menus’)) {
register_nav_menus(
array(
‘main_nav’ => ‘Main Navigation Menu’
)
);
}`And no matter what I put in the css I can not get the current page item to show. Any help would be great.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can't target Current Page’ is closed to new replies.