Learn how to remove the secondary sidebar in any Genesis Framework child theme using one line of code.
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.
If you want to remove the secondary sidebar from your Genesis child theme, it is very easy:
Snippet to remove the secondary sidebar
Add this fragment to the end of the functions.php file:
To see this and another 1097 code snippets of this website, login or subscribe here.
With this simple line of code the secondary sidebar will no longer appear in the widget section.
And if you remove this one, you will most likely be interested in removing the primary sidebar at the same time.
In this case, I also recommend you to hide the layout options that contain sidebars. This way you will avoid confusing your customers.
Conclusions
Using the above code snippet you can remove the secondary sidebar from the widget section of any Genesis child theme.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂