• Resolved rubydrag0n

    (@rubydrag0n)


    Good morning everyone,

    Bizarre issue with my client’s WordPress site, running customized TwentyEleven theme. Whenever I update the stylesheet, the changes save in the .css file, but they’re not being reflected at all on the website.

    I’ve checked out some helpful threads in the forums already, and I understand you’re all quite busy, so I’ll report what I’ve already found, and attempted:

    – I’ve cleared my browser’s cache, and tried this in both Chrome and Safair: didn’t fix
    – I’ve created a Child Theme, and the site’s now pulling this particular stylesheet: didn’t fix
    – Tried “!important”ing the styles I want updated in the parent stylesheet, with Child Theme running: didn’t fix
    – Tried uploading a brand new stylesheet, named different: didn’t fix
    – I’m certain it’s the correct stylesheet that I’m editing

    Site: https://pcwmanitoba.ca/

    Best example: Home page houses two sections of three content containers each (first one’s right below the tagline, second one is right above the contact info).

    CSS:

    .tri_col {
        width: 257px;
        max-width: 33%;
        border-right: 1px solid #dfdfdf;
        float: left;
        margin: 30px 0;
        padding: 30px 35px;
    }

    But what’s saved in the stylesheets (both Parent and Child):

    .tri_col {
    	max-width: 244px !important;
    	border-right: 1px solid #dfdfdf;
    	float: left;
    	margin: 30px 0; padding: 30px 35px;
    }

    Also tried updating the single page posts Previous and Next navigation to include padding, however the styles aren’t updating either.

    Any and all help is appreciated, thank you in advance!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • jhopkinsmedina

    (@jhopkinsmedina)

    Hello! I’ve had this same issue occasionally. There are a few things that would cause this lack of updating. In order of likeliness, they are:

    Browser Cache
    Host Cache (GoDaddy has a cache flush option now!)
    CSS Cascade Order
    Plugin Cascade Order

    Since you’ve tried your browser cache, you should focus on figuring out how to update your host cache. You would know it was this error if you edited your CSS, and found that it applies hours later. If so, ask your host how to flush your database cache.

    If that doesn’t work, what I’ve found is that some of the professionally-made themes force their custom CSS areas to override all other cascades. Some designer plugins (Visual Composer is bad with this sometimes) will also do the same. Apply the CSS, then use Chrome’s web developer tool (right-click => inspect) to see if the code appears somewhere with a line through it.

    If you’re applying CSS and the editor isn’t saving your changes then your best option is to edit them offline and use SFTP (FileZilla works wonders) to simply replace the files you’re needing!

    Thread Starter rubydrag0n

    (@rubydrag0n)

    Sorry for the later reply, and thanks, JHopkins, for your response. It seems Fat Cow is cool with updating the hosting cache, and that worked! Thanks for your help with this!

    On a more bizarre note, when I spoke with [my host], HostGator on the matter, they said they don’t update the host cache. Just an FYI if anyone’s interested in knowing.

    Thread Starter rubydrag0n

    (@rubydrag0n)

    *Thanks, this topic is resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stylesheet Not Updating’ is closed to new replies.