Last active
November 2, 2015 06:50
-
-
Save ThierryA/6e40f80557f4008e31ec to your computer and use it in GitHub Desktop.
Beans: force full width layout on front page.
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_filter( 'beans_layout', 'beans_child_layout' ); | |
function beans_child_layout( $layout ) { | |
// Return full width layout of front page. | |
if ( is_front_page() ) | |
return 'c'; | |
// More conditional checks could be added here. | |
return $layout; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment