Problem with child theme style.css file updates not showing on live site

I have a strange problem with my style.css file. I use the x child theme and have some styling in the child theme style.css file. Now when I edit the child theme, the edits are no longer being picked up. When I access the page, Chrome picks up the style file
…/wp-content/themes/x-child/style.css?ver=4.6.4 which does not reflect the edits.

If I access the style file with the URL …/wp-content/themes/x-child/style.css (without the version), the edits show.

I have tried to modify the style sheet with the Wordpress editor and with ftp and the result is the same, the changes do not show?

Hello There,

Thanks for writing in! You are having a caching issue. Although you made the changes to the style.css file, it does not reflect because you have installed Cache Enabler by KeyCDN and that you are using CloudFlare. You must clear all your caches first before you can see the contents of your style.css file with your latest changes in it.

Please let us know how it goes.

The cache enabler I have cleared a number of times, so that would not seem to be the problem. I’ll contact the hosting provider (they run CloudFlare, I have no direct control over it). Wondering why this happens only when the parameter is set and for this one particular file (all other files on the site seem to update, for instance the functions.php which is in the same directory.

OK, the problem was related to cloudflare. As it is managed by the hoster, I do not have control over it but the admin cleared it and now I’m good!

Glad to hear that. Have a great day!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.