WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Doesn't Load CSS From Them Folder (GoDaddy) (6 posts)

  1. danmatthews
    Member
    Posted 5 years ago #

    I've created a custom theme for my wordpress site that works perfectly on my local wordpress set-up, but when i upload it to my working site (hosted on godaddy), it won't load the CSS file.

    I have tried linking directly to the CSS file in my header, i.e. by linking directly to /wp-content/themes/mytheme/style.css, rather than using the <?php bloginfo('stylesheet_url'); ?> function. And it still does not load, firebug shows that there is a 404 error when trying to call the stylesheet, as if it doesn't exist.

    This started occuring shortly after i moved the index.php file away from the core wordpress files, i followed the instructions and my site/blog worked perfectly, but my custom theme wouldn't load the CSS.

    I uninstalled wordpress, and re-installed it, keeping all the files in the same directory, and it works fine when just using the default theme, but will STILL not load the CSS file from my theme folder.

    If anybody could help, i'd be really greatful, thanks.

  2. aaron_guitar
    Member
    Posted 5 years ago #

    Could you give a link?

  3. danmatthews
    Member
    Posted 5 years ago #

    http://www.daniel-matthews.com/

    Currently it's just running the default theme with a few blog entries. The theme i made is currently in the wp-content/themes/mytheme/ folder.

  4. aaron_guitar
    Member
    Posted 5 years ago #

    You'll need to activate your theme so I can see what it's doing.

  5. danmatthews
    Member
    Posted 5 years ago #

    Activating it now, seeing as how nobody goes on my site anyway.
    Hope you can help, thanks for trying.

  6. danmatthews
    Member
    Posted 5 years ago #

    A-HA! fixed the issue.

    It seemed like navigating directly to the CSS file wasn't allowed in the browser (i.e. like the file was read protected), and that's why wordpress couldn't read it.

    However, changing the permissions on the theme folder, by going to the file in the finder, opening up the 'get info' panel, and changing the permissions for 'everybody' to "read only" has solved the issue, and my theme has loaded.

    Thanks for the offer of help aaron, seems i was just being silly though, the most basic of things and i didn't check it.

Topic Closed

This topic has been closed to new replies.

About this Topic