Created
January 30, 2012 21:55
-
-
Save billerickson/1707036 to your computer and use it in GitHub Desktop.
Driskill - Sidebar Content Sidebar, Left Sidebar on Top
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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