• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the primary navigation menu in Genesis Framework

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 839 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. 😉

Genesis Framework Menu PHP

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?