Multiple navigation menus to a location?

is this look like the menu you aiming ? Here how to create it Create custom menu in your functions.php , // main menu function main_nav() { wp_nav_menu( array( ‘theme_location’ => ‘header-menu’, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => … Read more

Programmatically set current-menu-item using wp_nav_menu

Adding Conditional Classes to Menu Items This example would let you add a custom class to a menu item based on the condition you specify. Don’t forget to change the condition. <?php add_filter(‘nav_menu_css_class’ , ‘special_nav_class’ , 10 , 2); function special_nav_class($classes, $item){ if(is_single() && $item->title == “Blog”){ //Notice you can change the conditional from is_single() … Read more

Set blog archive to active when browsing archive

Ok so this is how I ended up solving it. Please note it’s not exactly super tested but it seems to work at least. Also, if you’re not using a static front-page it may require some changes (get_option(‘page_for_posts’) notably). Also note that I’m using “active-parent” as my class name. This is because I’m also using … Read more

Partial refresh of menu in customizer not working?

Selective refresh is only for the items that are selected to cause auto refresh in customizer as explained here: https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/ and here: https://make.wordpress.org/core/2016/03/22/implementing-selective-refresh-support-for-widgets/ So if the theme developer haven’t included this support then you might not see it refresh automatically on save and publish of menu items.