WordPress.org

Ready to get started?Download WordPress

Forums

Delicate
[resolved] 404 error page not working (3 posts)

  1. Guido
    Member
    Posted 2 years ago #

    Hi,

    I see part of this theme is 404.php file.

    But it's not working, when I try it a page is loaded, but without all error messages... Also is 404 not displayed in my browsers title bar (top).

    Who can help me?

    Guido

    http://wordpress.org/extend/themes/delicate/

  2. Guido
    Member
    Posted 2 years ago #

    To add pagename in browsers title bar add this code in header.php underneath <title>:

    <?php if ( is_404()) { bloginfo('name'); ?> - <?php _e('Error 404', 'nattywp'); } ?>

    Guido

  3. Guido
    Member
    Posted 2 years ago #

    I figured it out myself and using the following code in 404.php:

    <?php get_header(); ?>
    <div id="main">
    <div class="columns">
    <div class="narrowcolumn singlepage">

    <div class="title"><h2><?php _e('Error 404','nattywp'); ?></h2></div>
    <div class="entry">
    <p><?php _e('It appears you\'ve missed you\'re intended destination, either through a bad or outdated link, or a typo in the page you were hoping to reach.','nattywp'); ?></p>

    <?php get_search_form(); ?>

    </div>
    </div> <!-- END Narrowcolumn -->

    <div id="sidebar" class="profile">
    <?php get_sidebar();?>
    </div>
    <div class="clear"></div>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags