Last active
July 8, 2017 05:21
-
-
Save manhleo93/c2354faa79a0959e3d01a93374091572 to your computer and use it in GitHub Desktop.
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
add_action( 'get_header', 'sk_set_404_layout' ); | |
/** | |
* Force full width content on 404 pages | |
* | |
* @author Sridhar Katakam | |
*/ | |
function sk_set_404_layout() { | |
if ( ! is_404() ) { | |
return; | |
} | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment