• 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 Genesis Framework navigation menus

Find out how to remove all the navigation menus in any Genesis Framework child theme using one line of code.

Have you entered the menu in the header widget area and no longer need to display the Genesis navigation area?

I like your minimalist style. 😉

Here’s how to do it.

Snippet to remove menus from the navigation area

Add this fragment at the end of the functions.php file:

To see this and another 847 code snippets of this website, login or subscribe here.

With this simple line of code you make the navegation menu disappear, both in the settings and in the WordPress customizer.

If you don’t want to be so drastic but you’ve gotten this far, you might want to remove just the sub menu.

Conclusions

Now you know how to avoid displaying the navigation menus, both primary and secondary, in any Genesis child theme.

Any questions? I read you 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?