0
I have a wordpress site and would like as it is selected the menu according to the page I am, also be selected the item "Blog" menu when I am on a category page or in a post.
This is the menu code of my theme:
$defaults = array(
'container' => 'nav',
'theme_location' => 'primary',
'depth' => 3,
'walker' => new ts_walker_nav_menu
);
wp_nav_menu( $defaults ); ?>
So, would you know where to find this Nav function that assigns the Current-menu-item class in the active item? Then I could try to fit the condition to also highlight the "blog" when in some category or post.
– Raylan Soares
it puts the class by default
– Daniel Costa