Find out how to fix the right sidebar layout format in Genesis Framework themes using code.
Genesis offers 6 possible structures depending on how you combine the content with the primary and secondary sidebars.
In most cases you don’t need all of them. In fact, if you wish, you can add a snippet to Genesis to force it to always display a certain layout.
For example, do you want all pages on the site to show the sidebar on the right?
Read on. 😉
Code to force content-sidebar design
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.
When you enter this block, all entries and pages in the Genesis child theme you are working on will have the sidebar on the right.
If you prefer, you can also fix the sidebar to the left, for example.
Conclusions
As you can see, a simple line of code helps you to force the sidebar to the right of the content on any Genesis site.
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. 🙂