• Resolved magicalwonders

    (@magicalwonders)


    Hi Folks,

    I have a 404.php file included in a theme I’m building, but it doesn’t seem to be working for some reason.

    My code for this file is very basic as follows:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    
    	<div id="mainContent" class="column">
    
    		<h2 class="center">Error 404 - Not Found</h2>
               </div>
    
    <?php get_footer(); ?>

    My url for the theme is https://really-valid-info.com/blog/
    I’ve tried browsing to a non existent page such as https://really-valid-info.com/blog/?page_id=25 This produces a page, but without any text or message!

    The same thing happens when I switch to using the default theme – so not sure how to get this to work!

    Any advice would be appreciated.

    Many thanks,

    Myles

Viewing 1 replies (of 1 total)
  • Thread Starter magicalwonders

    (@magicalwonders)

    I’ve got this working now. There was no .htaccess file in the WordPress folder and pretty permalinks were not being used.

Viewing 1 replies (of 1 total)
  • The topic ‘404.php doesn’t seem to work for me.’ is closed to new replies.