Last active
December 13, 2015 17:08
-
-
Save cdils/4945286 to your computer and use it in GitHub Desktop.
Function to call in a custom 404 template for Genesis WordPress.
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
remove_action( 'genesis_loop', 'genesis_404' ); // Remove the default Genesis 404 content | |
add_action( 'genesis_loop', 'cd_custom_404' ); // Add function for custom 404 content | |
function cd_custom_404() { | |
if ( is_404() ) { | |
get_template_part('/partials/sitemap'); // Plop in our customized sitemap code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment