Answers for "How to Add Custom Navigation Menus in WordPress Themes"

PHP
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 "How to Add Custom Navigation Menus in WordPress Themes"

Browse Popular Code Answers by Language