WordPress.org

Ready to get started?Download WordPress

Forums

style.css not found.. but is found.. errrrr (8 posts)

  1. pblk
    Member
    Posted 4 years ago #

    Ok, the topic might have you a little confused, as am I.

    I was working on the style.css file for my theme, made a few changed to a style, and refreshed the page (as I have been doing all day), and the layout breaks badly and loses all rules in style.css

    I try to browse directly to the file and get my 404 page, but I know its there, I am looking at it in my ftp client, and I activated default theme then re-activated my theme (this would not be possible if style.css was not there).

    I have made a copy of style.css and placed it in a css folder and linked to that, so my site looks fine, but whats up with my style.css and the blog not finding it?? Im calling it with this code:
    <style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style>

    and also tried a <link rel="..... type call aswell.

    Has anyone else experienced this before, and if so what causes it??

  2. s_ha_dum
    Member
    Posted 4 years ago #

    Do you have an URL?

  3. pblk
    Member
    Posted 4 years ago #

  4. s_ha_dum
    Member
    Posted 4 years ago #

    Your stylesheet is there-- http://121.0.6.68/~islheal/wp-content/themes/islandHealing/style.css.

    Now it isn't-- http://121.0.6.68/~islheal/wp-content/themes/islandhealing/style.css. See the difference?

    What URL is bloginfo('stylesheet_url'); echoing?

  5. pblk
    Member
    Posted 4 years ago #

    the camelhump in islandHealing?

    Ive echoed bloginfo('stylesheet_url'); onto homepage.
    http://121.0.6.68/~islheal/

  6. s_ha_dum
    Member
    Posted 4 years ago #

    That works, and according to JSView, WebDeveloper, and FireBug the stylesheet is loading. I think you need to disable that second duplicate stylesheet for now.

  7. pblk
    Member
    Posted 4 years ago #

    Yeh really strange how it just stopped working, then started again.
    I didnt make any changes to the site since it stopped working apart from linking to the duplicate sheet and echoing the stylesheetUrl...

    Thanks for your input mate.

  8. pblk
    Member
    Posted 4 years ago #

    Its just done it again while I was editing style.css! Stupid thing...

Topic Closed

This topic has been closed to new replies.

About this Topic