• I am new to wordpress and although I’m very familiar with css and html, I don’t know much php and haven’t done anything with wordpress!

    I am trying to make my own basic theme at the moment…just kind of playing around with everything.

    I have a super simple style.css file where I set the background to a certain color. I just recently changed it, and updated the style.css file in filezilla. However, when I go to my theme and preview it the background remains the old color. But inspecting the live preview shows the updated hex value. IE: the hex code in the style.css file is for a purple color, but the background is showing up the old blue color I had.

    Does anyone know what could be causing this and how to fix it? Thank you so much!:)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Clear your browser cache?

    Thread Starter kaitlynne

    (@kaitlynne)

    Already cleared D:

    Try seeing if your updates show up when you go to the theme editor inside WordPress. That will confirm that your WordPress admin is seeing the file you thought you put there.

    If you’re using a host that has a CDN for your site, you might have to clear that cache – as well as for your caching plugin if you have one.

    I recently had a similar problem and found a solution.
    I use DreamHost to host my site so i’m not sure if it will be the same for you.

    My style.css file was also not updating. I cleared my cache on my browsers and re-loaded the style.css file with no luck. Finally I found out that DreamHost uses this thing called “Varnish” to cache files like my style.css.

    After downloading this plug-in: Varnish HTTP Purge
    and clicking “Purge Varnish” on my WordPress Dashboard, my changes showed up!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘style.css not updating?’ is closed to new replies.