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:
To see this and another 1097 code snippets of this website, login or subscribe here.
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.
Conclusions
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. 😉