Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created January 30, 2012 21:55
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/1707036 to your computer and use it in GitHub Desktop.
Save billerickson/1707036 to your computer and use it in GitHub Desktop.
Driskill - Sidebar Content Sidebar, Left Sidebar on Top
<?php
add_action( 'genesis_meta', 'driskill_scs_custom' );
/**
* Sidebar Content Sidebar, Left Sidebar on Top
* @author Bill Erickson
* @link https://gist.github.com/1707036
* @css https://gist.github.com/1707038
*/
function driskill_scs_custom() {
if( 'sidebar-content-sidebar' !== genesis_site_layout() )
return;
remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt' );
add_action( 'genesis_before_content', 'genesis_get_sidebar_alt' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment