trying to replace custom menu
-
U am using as a CMS and have a navigation menu in the header. This works fine, but I want to replace the custom menu with a drop down menu.
To do this I have installed a widget and registered the new menu in functions.
Admin panel > menu > Theme Locations says “Your theme supports 1 menu” but in fact both menu’s show up in the dropdown menu. So I deleted the registration of the old custom menu in functions.php.
It now reads `add_action( ‘init’, ‘register_my_menu’ );
function register_my_menu() {
register_nav_menu(
‘navbar-menu’, __( ‘navbar’ ) );
}add_theme_support( ‘menus’ );`
I keep seeing the old menu, have refreshed the page many times. I made sure I saved the menu too.
Can some one help me to either replace the custom menu with a dropdown one or at least have it as a choice?
Thank you.
The topic ‘trying to replace custom menu’ is closed to new replies.