How to Adress the menu-name of a menu?
-
Hello,
I want to do a bilingual page and want to change the ‘categories’-nav-tab to the name of the menu (set in admin area) – clue: it should change when I change the language, actually the menu changes right, but the ‘categories’ notSupernova: top-most-navigation.php (template-parts/top-most-navigation.php) <<< there it is – HIGHLIGHTED
<div class="sup-right-menu"> <div class="sup-nav-label"> <span class="sup-icon-menu"></span> <span class="sup-nav-name"><?php /// I NEED TO WRITE THE RIGHT STUFF HERE /// ?></span> </div> <nav id="sup-cat-nav" class="sup-menu-container" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'Header_Cat', 'menu_id' => 'sup-right-nav' , 'depth' => 1 ) ); ?> </nav> </div>
I tried
$nav_menu = wp_get_nav_menu_object(25); echo $nav_menu->name;
<- 25 is one of these two menus, but I don’t know how to adress the “higher instance”
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to Adress the menu-name of a menu?’ is closed to new replies.