Support » Fixing WordPress » error in 404.php file

  • I tried rewriting my 404 ‘file not found’ file & deleted some of the code accidentally. Could someone take a look at this & tell me what needs to be added back (just above the <h3> tag, I think):

    ~<?php get_header(); ?>

    <h2><?php _e(‘Not Found’); ?></h2>

    <?php _e(‘Sorry, but the page you requested cannot be found. If you came here using this link:


    try pasting this link into your browser’s address field:

    ‘’); ?>

    <h3><?php _e(‘Search’); ?></h3>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>~

  • The topic ‘error in 404.php file’ is closed to new replies.