404.php
Description: 404.php displays an error page when a user attempts to access a page that doesn't exist.
This template includes the following templates:
Template Code
<?php get_header(); ?> <div id="content" class="narrowcolumn"> <h2 class="center">Error 404 - Not Found</h2> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
This template includes the following tags:
get_headeris a WordPress include tag which includes the fileheader.php.get_sidebaris a WordPress include tag which includes the filesidebar.php.get_footeris a WordPress include tag which includes the filefooter.php.
HTML Skeleton
[HEADER.PHP] <div id="content" class="narrowcolumn"> <h2 class="center">Error 404 - Not Found</h2> </div> [SIDEBAR.PHP] [FOOTER.PHP]
Related CSS Styles
Resources
- Creating an Error 404 Page (WordPress.org)