Answers for "how to make a navbar in wordpress"

4

wp_nav_menu

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

create menu in wordpress

function wpb_custom_new_menu() {
  register_nav_menus(
    array(
      'my-custom-menu' => __( 'My Custom Menu' ),
      'extra-menu' => __( 'Extra Menu' )
    )
  );
}
add_action( 'init', 'wpb_custom_new_menu' );
<?php
wp_nav_menu( array( 
    'theme_location' => 'my-custom-menu', 
    'container_class' => 'custom-menu-class' ) ); 
?>
Posted by: Guest on April-24-2021

Code answers related to "how to make a navbar in wordpress"

Browse Popular Code Answers by Language