Answers for "wordpress nav menu"

4

wp_nav_menu

wp_nav_menu( array(
    'menu' => 'TEST',
    'menu_class' => "", 
    'menu_id'   => "",
    'container' => false
) );
Posted by: Guest on November-14-2020
1

display nav menu in frontend using Wordpress

<?php    wp_nav_menu( array(        'theme_location'  => 'header',    ) );?>
Posted by: Guest on June-29-2021
0

wp main menu

wp_nav_menu( array( 'theme_location' => 'header', 'menu' => 'Main Menu') );
Posted by: Guest on July-23-2020
0

How to Add Custom Navigation Menus in WordPress Themes

function wpb_custom_new_menu() {
  register_nav_menu('my-custom-menu',__( 'My Custom Menu' ));
}
add_action( 'init', 'wpb_custom_new_menu' );
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language