Skip to content

Instantly share code, notes, and snippets.

@ThierryA
Last active November 2, 2015 06:50
Show Gist options
  • Save ThierryA/6e40f80557f4008e31ec to your computer and use it in GitHub Desktop.
Save ThierryA/6e40f80557f4008e31ec to your computer and use it in GitHub Desktop.
Beans: force full width layout on front page.
<?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