-
-
Save billerickson/75b95cee09534f28fc05 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
<?php | |
/** | |
* Remove stuff on 404 | |
* | |
*/ | |
function be_remove_on_404() { | |
if( ! is_404() ) | |
return; | |
// remove stuff from 404 page here | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
} | |
add_action( 'genesis_meta', 'be_remove_on_404' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment