• 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

How to force the left sidebar layout in Genesis

Find out how to fix the layout design with the sidebar on the left in Genesis Framework child 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 left?

Here you have how to do it:

Code to force the sidebar-content design

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.

When you enter this block, all entries and pages in the Genesis child theme you are working will be shown with the sidebar on the left.

However, if you prefer, you can also fix one of the layouts with 2 sidebars, for example.

Conclusions

As you can see, a simple line of code helps you force the sidebar to the left of the content on any Genesis site.

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?