We're using a custom theme built on top of rwd theme and when I do changes to our theme's CSS files, everything is fine for next about a day or two, then those changes are auto-reverted to previous versions of the same CSS files. JS and (p)HTML files are NOT affected, only CSS. I did look if we have (we took over the store, not build it) a scss/sass/less auto-compiler and I can't find it, so this is not causing problems.

I am not an expert in Magento but I do know my way around it, but this issue is really mind-boggling. I also noticed that there's no similar issue to be found on Google ...

Does any of you have an idea what could be causing this restoration of old CSS files? There's not backup solution set, so this is out of the question.

We're not merging CSS and JS files, they are being served directly.

Any help would be greatly appreciated!

  • There is nothing in the default magento build that would be reverting your css. If you are using a CDN ensure that the updated files have been cached. I would recommend checking the timestamps on the files in question. – Eirik May 25 '17 at 15:16
  • No CDN as well (sorry for not mentioning it before). Timestamps of files in question are as I said, most show old times, the changed ones show that something overwritten them a day or two after I uploaded them to live server. – Kristjan O. May 25 '17 at 15:24
  • Is this your own custom theme that you built? – William Oakley May 25 '17 at 15:49
  • No, I just took over management of the store and migrated it to Hypernode. – Kristjan O. May 25 '17 at 16:01
  • Have you checked ftp transfer logs or bash history? – jscar May 26 '17 at 7:24

Found out what was causing the CSS revert, template itself. I figured out that it had a CSS template file hidden under app/design/frontend/base/default/template/smartwave/granada/css/ which was called design.phtml. That file also dynamically loaded CSS settings from database which could be changed in admin and then it generated a copy per storeview.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.