Find out how to remove the main navigation menu in any Genesis Framework child theme using one line of code.
If you are not going to use the primary navigation menu in your project, you only need one line of code to remove it.
Let’s get down to business. 😉
Snippet to remove the primary navigation menu
Add this fragment to the end of the functions.php file:
With this simple line of code you make the primary navigation menu disappear, both in the settings and in the WordPress customizer.
If you don’t need the secondary navigation menu either, you can delete both.
Now you know how to prevent the primary navigation menus from being displayed in any Genesis child theme.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉