Created
June 11, 2014 20:19
-
-
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.
This file contains hidden or 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 | |
// 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