Support » Fixing WordPress » WordPress Theme Doesn’t call 404.php

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

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

    It’s still not working 🙁

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Theme Doesn’t call 404.php’ is closed to new replies.