Forcing Sidebar Widgets to Display Before the Content Area in Responsive Mode w/ Genesis Framework

I had a client request to have his sidebar widgets load before his content area on his wordpress website and while I knew it had to be possible, I’d never done that before so I did some investigating and discovered that it is possible w/ Genesis Framework / Child Themes, just add this code to your functions.php file (or in Genesis > Custom Code if you are using the Prose Child Theme).

remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
add_action( 'genesis_before_content', 'genesis_get_sidebar' );

Now that I’ve seen how this works when I pull the client’s website up on my iPhone I can understand why they were wanting to do this. If you want to have some pages load differently than others you should also look at Genesis Simple Sidebars because it works well in tandem w/ this idea. Multiple pages can have different widgets loading before the content on the page.

About Cotton Rohrscheib

Cotton Rohrscheib is the CEO of Rohrscheib Capital Partners. Over the past 20 years he has been associated with numerous projects in the IT, Healthcare, and Agriculture industries. Born a serial entrepreneur, Cotton has personally been involved in several startups, product launches, and brand acquisitions during his career and has consulted on hundreds of projects for clients around the world. Today he still services the marketing and consulting needs for clients while trying to maintain a healthy balance between work and being a good husband and father to his wife, Donna, and their son, Spencer.

This site uses Akismet to reduce spam. Learn how your comment data is processed.