WordPress Theme Doesn't call 404.php (5 posts)

  1. udegbunamchuks
    Posted 6 years ago #

    Please I hope you can help me out. 404 errors on my theme don't load the 404.php file. They all seem to load the bottom part of single.php/index.php that states:

    <h1 class="title">Not Found</h1>
    <p>I'm Sorry, you are looking for something that is not here. Try a different search.</p>

    How can I make it load the actual 404.php?
    Thanks in advance.

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Try removing that whole <h1 class="title">Not Found</h1> section between <?php endwhile; ?> and `
    <?php endif; ?>` at the bottom of the template files.

  3. udegbunamchuks
    Posted 6 years ago #

    It's still not working :(

  4. BadBoyMcCoy
    Posted 6 years ago #

    I was having a similar problem, the 404 page was just showing my latest post. With the title saying 'Nothing Found For' followed by what ever had been entered in the url.

    After a site wide search for 'Nothing Found For' I found the text in the AIOSEO plugin. I deleted whatever had been set in the '404 Title Format:' setting for the plugin and my 404 is working now.

  5. udegbunamchuks
    Posted 6 years ago #

    It suddenly started working for me. I wonder what I did wrong in the first place ;)

Topic Closed

This topic has been closed to new replies.

About this Topic