Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Last active January 16, 2021 18:40
  • 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
Embed
What would you like to do?
Force full width layout on search resuls page
//* Force Full Width Layout on Search Results Pages
function c8d_posts_full_layout() {
if( is_search () ){
return 'full-width-content';
}
}
add_filter( 'genesis_site_layout', 'c8d_posts_full_layout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment