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/8051050 to your computer and use it in GitHub Desktop.
Save scottnix/8051050 to your computer and use it in GitHub Desktop.
Thematic Theme override example for custom 404 pages.
// reference http://thematictheme.com/forums/topic/custom-404/
// override 404 content
function childtheme_override_404_content() {
thematic_postheader(); ?>
<div class="entry-content">
<p>Super Awesome Customizations</p>
<p><?php _e( 'Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'thematic' ) ?></p>
</div><!-- .entry-content -->
<form id="error404-searchform" method="get" action="<?php echo home_url(); ?>/">
<div>
<input id="error404-s" name="s" type="text" value="<?php the_search_query(); ?>" size="40" />
<input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php esc_attr_e( 'Find', 'thematic' ); ?>" />
</div>
</form>
<?php } // end 404_content
@scottnix
Copy link
Author

scottnix commented May 2, 2014

Related: Changing the title that appears on 404 pages https://gist.github.com/scottnix/8051116

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