Skip to content

Instantly share code, notes, and snippets.

@ChrisCree
Created June 11, 2014 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisCree/15d097121cc5ec4b9872 to your computer and use it in GitHub Desktop.
Save ChrisCree/15d097121cc5ec4b9872 to your computer and use it in GitHub Desktop.
Drop this code into your Genesis child theme functions.php file to force the home page to display with the full width content layout.
<?php
// Do not copy opening PHP tag above
// Force full width home page layout
add_filter( 'genesis_pre_get_option_site_layout', 'wsm_full_width_home_page' );
function wsm_full_width_home_page( $opt ) {
if ( is_front_page() ) {
$opt = 'full-width-content';
return $opt;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment