Skip to content

Instantly share code, notes, and snippets.

@scottnix
Last active December 31, 2015 22:08
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 scottnix/8051116 to your computer and use it in GitHub Desktop.
Save scottnix/8051116 to your computer and use it in GitHub Desktop.
Thematic Theme change 404 .entry-title text.
// reference http://thematictheme.com/forums/topic/custom-404/
// change postheader post title for 404 error pages
function childtheme_postheader_posttitle($posttitle) {
if ( is_404() ) {
$posttitle = '<h1 class="entry-title">Some Custom Title</h1>';
}
return $posttitle;
}
add_filter('thematic_postheader_posttitle', 'childtheme_postheader_posttitle');
@scottnix
Copy link
Author

scottnix commented May 2, 2014

Related: Creating custom 404 content https://gist.github.com/scottnix/8051050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment