• I am currently hosting my site https://www.englishforentrepreneurship.com at Web Hosting For Students. A few days ago, I was playing with creating my own theme, and within in the style.css file, I gave the Ninja Forms form at the bottom of the landing page the background color of red. Although I have deleted the code so that there is no background color, it is still red on the site. When I use the Chrome developer tools and inspect the element, it still shows that in my style.css file, the background is red…

    My question is, how long does it take for changes in the style.css file on my server to “show up” on my site… It seems any changes I make in the admin area show up immediately, but if I make the change directly on the host, a. it takes a few days for the changes to actually appear on the site, or b. my browser is somehow retaining the old version of my site although I have cleared my browser data and reset my router.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    have you checked with your hosting providers to see if they cache your site?

    Thread Starter rscharfer

    (@rscharfer)

    I just wrote them an email to find out. I have really done everything — cleared out my DNS, cleared browser data, and reset my router. The changes to the style.css still are not showing up.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Even obvious changes like:

    body {
        border: 10px solid red !important;
    }

    ?

    Thread Starter rscharfer

    (@rscharfer)

    yea, that didn’t work. I also just added a sentence within the comment section and you dont see that. The browswer (all browsers it seems) is for some reason using an old version of the style sheet.

    Your style.css file is wrong – this:

    @import "../twentyfourteen/style.css";

    Should be:

    @import url("../twentyfourteen/style.css");

    But actually, you shouldn’t be using @import – it’s no longer considered best practice – see:

    https://codex.www.ads-software.com/Child_Themes

    Do you also have the functions.php file set up?

    You also need a theme name on that style.css file – read the above link.

    Thread Starter rscharfer

    (@rscharfer)

    I know. You are right. I actually have started using the functions.php to incorporate the style sheets on another site.

    But the problem still remains. I made your suggested changes by adding the “url”, parentheses, and theme name, but it still doesn’t translate to the front end. In other words, when I look at the style.css sheet on my server, the changes are there, just like I want it. But if I inspect the element in the browser, somehow the browser is using an old style sheet from a couple of days ago, and the background that people see is still red.

    As Andrew suggested, that sounds like caching – and since it doesn’t look like you have a caching plugin, ask your hosts.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Why don't changes to my style.css file "register"?’ is closed to new replies.