How to remove Sitemap from 404 page in Genesis

Looking to get rid of the Sitemap from 404 pages in your Genesis site?

Simply copy 404.php from parent Genesis directory into your child theme and remove the code that outputs the sitemap.

Step 1

Copy 404.php from Genesis directory into your active child theme directory.

Step 2

Edit the above file and comment out or delete

if ( genesis_a11y( '404-page' ) ) {
    echo '<h2>' . __( 'Sitemap', 'genesis' ) . '</h2>';
    genesis_sitemap( 'h3' );
} else {
    genesis_sitemap( 'h4' );
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.