Page Text: Bishal Napit Leave a reply
In WordPress , when you register the menu for your site and display it, then, if you do not assign the menu to the required theme location then, it will display the list of pages added within your site. But, what if you do not like this feature provided by WordPress at all and you want to disable it? Is this really doable? Well it is doable and here we will learn about how to disable fallback menu in WordPress. So, let’s move ahead and learn it, shall we?
How to register menu in WordPress?
First of all, you might need to know about how to register the menu in WordPress themes. So, let’s first lean about it.
For registering the menu in WordPress, you need to hook the function inside the after_setup_theme hook, which contains the below PHP code inside it:
register_nav_menus(