Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save braddalton/5547550 to your computer and use it in GitHub Desktop.
Save braddalton/5547550 to your computer and use it in GitHub Desktop.
Full Width Layout On Single Posts http://wpsites.net/web-design/change-layout-genesis/
/** Force full width layout on single posts only*/
add_filter( 'genesis_pre_get_option_site_layout', 'full_width_layout_single_posts' );
/**
* @author Brad Dalton
* @link http://wpsites.net/web-design/change-layout-genesis/
*/
function full_width_layout_single_posts( $opt ) {
if ( is_singular( 'post' ) ) {
$opt = 'full-width-content';
return $opt;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment