Skip to content

Instantly share code, notes, and snippets.

@manhleo93 manhleo93/functions.php
Last active Jul 8, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.