Find out how to remove the primary sidebar in any Genesis Framework child theme using one line of code.
There are good reasons to stop using the sidebar in a child theme:
- 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 primary sidebar from your Genesis child theme, it is very easy:
Snippet to remove the primary 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 primary sidebar will no longer appear in the widget section.
And if you remove this one, you will most likely be interested in removing the secondary 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
Now you know how to remove the primary sidebar from a 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. 😉