Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 18, 2014 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/9076974 to your computer and use it in GitHub Desktop.
Save billerickson/9076974 to your computer and use it in GitHub Desktop.
function be_change_sidebar_order() {
$site_layout = genesis_site_layout();
if ( 'sidebar-content' == $site_layout ) {
// Remove the Primary Sidebar from the Primary Sidebar area.
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
// Place the Secondary Sidebar into the Primary Sidebar area.
add_action( 'genesis_sidebar', 'genesis_do_sidebar_alt' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment