• 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 secondary navigation menu in Genesis Framework

Find out how to suppress the secondary navigation menu in any Genesis Framework child theme using one line of code.

If you are not going to use the secondary 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 child 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 secondary navigation menu disappear, both in the settings and in the WordPress customizer.

If you wish, you can also change the position of the sub navigation menus.

Conclusions

Now you know how to prevent secondary navigation menus from being displayed 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?