• I am using a plugin the manage my 404 errors…. it really does not matter which one.

    I am looking for my 404 error page. I do not know where it is. I looked in the wp-content/themes/mytheme to see if it is there. what I found was a file titled 404.php

    When I opened it I found the following code.

    <div id =”content” class = “column”>
    <h2><?php _e(‘error ‘); ?> 404 &dash; <?php _e(page not found); ?><h2>
    <p> <?php _e(Sorry, no posts matched your criteria.); ?></p<
    </div>

    This code clearly states Sorry, no posts matched your criteria

    However when I create a 404 error and get a completely different message.

    Error 404 – Page not found
    Sorry, no posts matched your criteria.

    This looks like wordpress is using a different 404 error file then the one in the theme.

    Any idea where the 404 error is being generated?
    Where is the 404 error .php file ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter spineless

    (@spineless)

    When I edit the text it does not change.

    Thread Starter spineless

    (@spineless)

    I found an unusual code in the theme. the code above is not located in just one file. Looks like really bad coding. 🙁

    Each page has a if else statement on the home.php and other editable files.

    I want to replace the code so it points to one file…. or one string. So I will remove the code in each file and point to the 404.php file.

    How do i point to the 404.php file?

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

The topic ‘CANNOT Find 404 error page’ is closed to new replies.