Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 15, 2014 12:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/9aecc4f1c7f4f22c2ee5 to your computer and use it in GitHub Desktop.
<?php
function be_home_layout( $layout ) {
if( is_home() || is_archive() || is_single() )
$layout = 'content-sidebar';
return $layout;
}
add_filter( 'genesis_pre_get_option_site_layout', 'be_home_layout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment