Last active
January 16, 2021 18:40
-
-
Save cre8tivediva/97626868b3f29def244805f5ac0c2418 to your computer and use it in GitHub Desktop.
Force full width layout on search resuls 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
//* 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