Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
A button in the navigation menu?
I have added this line in my theme for the menu.
<?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘container_class’ => ‘menu-header’ ) ); ?>
So I don’t have control over each button… 🙁
Thanks again!
neuhaus3000
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you open your webpage in Google Chrome?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Right click on the menu and select ‘Inspect element’.
You should see a new toolbar appear; exampled.
Look at the HTML.
As you’re using the wp_nav_menu
function, you should see a class on a menu item that indicates it is selected. A class named ‘current_menu_item’ or similar.
Do you see that? If so, use that class to identify a selected button.