Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created August 22, 2015 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/c3e2e974d50941d920b2 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/c3e2e974d50941d920b2 to your computer and use it in GitHub Desktop.
Edit the 404 page content with Genesis
<?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