• Resolved angad619

    (@angad619)


    I am facing a very strange problem.
    I am creating a theme for myself.

    When using the default theme, the theme’s 404.php page works perfectly. But when I put a 404.php file in the new theme folder, it does not work.

    Also in the index.php, outside the ‘if (have_posts())’ loop, in the else part, I have a small code that says ‘Not Found’. Now if I remove 404.php from my theme folder, I get the ‘Not Found’ message. But when I write the 404.php file, it doesn’t show (shows the normal the webpage cannot be found page)

    I tried searching for the problem but couldn’t find anything. Please help me out. Thank you.

    -Angad Sodhi

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 page doesn’t show up’ is closed to new replies.