Answers for "Displaying Custom Navigation Menus in WordPress Themes"

PHP
0

Displaying Custom Navigation Menus in WordPress Themes

<?php
wp_nav_menu( array( 
    'theme_location' => 'my-custom-menu', 
    'container_class' => 'custom-menu-class' ) ); 
?>
Posted by: Guest on October-29-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

Code answers related to "Displaying Custom Navigation Menus in WordPress Themes"

Browse Popular Code Answers by Language