[resolved] CSS changes not updating (5 posts)

  1. unveiled14
    Posted 5 years ago #

    I created a child theme based on twenty-ten. Right now it has a blank functions.php and a style.css with only the following content (in addition to the default things necessary for a child theme):

    #branding {
    .home .sticky {
    	background-color: #DDDDDD;

    I'm using the latest version of chrome-beta to view it. The child theme is enabled. No caching plugin is enabled. But when I change the css (for example, if I change the left:-9997px; to left:-9999px;), hit the update button and then view my site, the css isn't updated. Hitting ctrl-F5 to flush the browser's cache and refresh doesn't update the css. The browser still shows -9997. If I wait 5 or 10 minutes and then hit ctrl-F5, the css will have updated.

    5 or 10 minutes isn't a big deal once the editing is done, but it makes it impossible to see if the changes I'm making are having any affect. Is there something else I need to do to get the new css rules to pass through to the browser?

  2. 123milliseconds
    Posted 5 years ago #

    If you install Firefox Firebug then when you visit your website you can immediately see the css styling plus line numbers for that

    Then you can see if you have the new css or are still using the old one

  3. unveiled14
    Posted 5 years ago #

    That's what I've been using. When I make the change in style.css, hit update and then flush the browser cache and refresh the blog page, the css doesn't reflect my new changes. It takes several minutes before a refresh finally shows that the changes have been made. Any ideas what could be causing this?

  4. Chip Bennett
    Theme Review Admin
    Posted 5 years ago #

    Are you using a caching Plugin on your site?
    Are you using a CDN or other third-party caching solution?
    Has your host implemented any caching?

  5. unveiled14
    Posted 5 years ago #

    Thanks much for you help.

    I am not using any caching plugin on my site, nor any third party caching plugin.

    But your question about my host having caching made me double check it. I use dreamhost and they recently made a "Page Speed Optimization" option available. I think it uses the optimization plugin to Apache developed by Google. I disabled that and now the css updates instantly.

    I'm marking this question as resolved and updating the tags.

Topic Closed

This topic has been closed to new replies.

About this Topic