How do I add the active class to the current link that the user is viewing? I have a mixture of pages and custom post types in my main nav menu and I know that wordpress has
.current_page_item that can be used but when I tried that nothing happened.
I'm slightly confused about how to implement it. Currently the menus for the site are being pulled in using:
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
<?php wp_nav_menu( array('menu' => 'Mobile Menu' )); ?> - for mobile state.