• 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 all sidebar designs in Genesis Framework

Find out how to remove all sidebar designs in Genesis Framework child themes using code.

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

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

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

If you want to delete all the designs that have a sidebar and keep only the full width one, read on. ๐Ÿ˜‰

Snippet to delete all sidebar designs

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.

By including these lines of code, you will no longer see the sidebar layout designs in the “Layout” section of the Genesis sidebar.

Alternatively, you may prefer to just delete the design with sidebar on the right, to the left or the layouts with 2 sidebars.

The choice is yours.

Conclusions

Do you want to remove all sidebar designs from a Genesis child theme at once? Copy and paste the previous code snippet. ๐Ÿ˜‰

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?