Created
September 15, 2013 23:55
-
-
Save makbeta/6575353 to your computer and use it in GitHub Desktop.
Wordpress: Genesis set page to full (or any other) width layout
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 | |
/*set the Genesis layout to full width or any other width | |
options as follows: | |
content-sidebar, | |
sidebar-content, | |
content-sidebar-sidebar, | |
sidebar-sidebar-content, | |
sidebar-content-sidebar, | |
full-width-content | |
*/ | |
function set_fullwidth_layout( $opt ) { | |
$opt = 'full-width-content'; | |
return $opt; | |
} | |
add_filter( 'genesis_pre_get_option_site_layout', 'set_fullwidth_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment