Last active
December 19, 2015 03:38
-
-
Save callingmedic911/5891108 to your computer and use it in GitHub Desktop.
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 //Don't include php start tag | |
//Remove sidebar from non-singular pages | |
add_filter( 'genesis_pre_get_option_site_layout', 'custom_fullwidth' ); | |
function custom_fullwidth( $opt ) { | |
is ( !(is_singular() || is_admin()) ) { //is_admin to prevent setting Full Width on Genesis> Theme Setting everytime you visit. | |
$opt = 'full-width-content'; | |
return $opt; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment