Last active
December 31, 2015 22:08
-
-
Save scottnix/8051116 to your computer and use it in GitHub Desktop.
Thematic Theme change 404 .entry-title text.
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
// 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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related: Creating custom 404 content https://gist.github.com/scottnix/8051050