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:
Using this code, sidebar designs will no longer appear in the “Layout” section of the Genesis sidebar.
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. 😉