• 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 designs with 2 sidebars in Genesis Framework

Learn how to remove the two sidebar designs (primary and secondary) in Genesis Framework child themes using code.

Genesis Framework offers 6 different layout designs that combine content with the primary and secondary sidebars.

In most cases you don’t need all of them. In fact, today there are good reasons to stop using sidebars in child themes:

  • They can distract the reader.
  • Nobody pays much attention to them anymore.
  • On mobile devices they are displayed at the end of the content.

And there are very few situations where you need a website with 2 sidebars. Therefore, you may find it interesting to hide those particular designs.

Snippet to remove designs with 2 sidebars

Add this snippet to the end of the functions.php file:

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

Using this code, sidebar designs will no longer appear in the “Layout” section of the Genesis sidebar.

You may also want to delete the right and left sidebar design or delete all sidebar designs using a single code snippet.

Conclusions

If you don’t need them, you can remove all designs containing 2 sidebars (primary and secondary) from 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 Layout PHP Sidebar Sidebar content

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?