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
Save cre8tivediva/97626868b3f29def244805f5ac0c2418 to your computer and use it in GitHub Desktop.
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