• So, I just tried to code a 404 theme, I finished it, designed it and I made the path to the style sheet css/style.css, however the 404 is in the images folder to people can’t access my images. It thinks that the css/style.css is in the images.

    Anyone else getting this?

Viewing 1 replies (of 1 total)
  • So, I just tried to code a 404 theme

    What do you mean, exactly? You tried to create a custom 404 error page within your theme folder?

    I finished it, designed it and I made the path to the style sheet css/style.css

    You need to put the 404.php file in the root of your theme folder, not the images folder. Then reference the stylesheet like this so the path will always be correct no matter what directory the 404 error is being called from.

    <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" />
Viewing 1 replies (of 1 total)

The topic ‘WordPress causing errors to my actual site.’ is closed to new replies.