Created
August 22, 2015 11:48
-
-
Save reasonstousegenesis/c3e2e974d50941d920b2 to your computer and use it in GitHub Desktop.
Edit the 404 page content with Genesis
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Edit the 404 page content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-404-entry-content/ | |
*/ | |
add_filter( 'genesis_404_entry_content', 'rtug_404_entry_content' ); | |
function rtug_404_entry_content() { | |
return 'Looks like you found a broken link. You can <a href="/contact/">let me know about it</a>, or try to find it yourself with the search form below.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment