Viewing 5 replies - 1 through 5 (of 5 total)
  • does your theme have a 404.php?

    if not, make one and drop in this code or similar

    <?php get_header(); ?>
    
    	<div id="content">
    
    	<div class="post">
    
    	<span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> &raquo; 404 Not Found</span>
    
    	<h2 class="title">Error 404 - Not Found</h2>
    
    		<div class="entry clearfloat">
    		<p>Ooops, I cannot find you the page you are looking for. You may try to search my site another keyword or use the navigation on your right to browse my site.</p>
    
    		</div>
    
    	</div>
    
    	</div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thread Starter Christopher Roberts

    (@christopherrobertswordpress)

    It doesn’t but I used another one, where should it be positioned?

    Thread Starter Christopher Roberts

    (@christopherrobertswordpress)

    I have tried that, but if I go to an invalid page, it brings up loads of code…

    any thoughts?

    Save the code that Samuel B gave in a file called 404.php in your theme.

    Thread Starter Christopher Roberts

    (@christopherrobertswordpress)

    I have done. Still doesn’t work. Also tried other themes, and reinstalling WordPress.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘404 not working’ is closed to new replies.