0

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!

8
  • 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
    Commented May 25, 2017 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. Commented May 25, 2017 at 15:24
  • Is this your own custom theme that you built? Commented May 25, 2017 at 15:49
  • No, I just took over management of the store and migrated it to Hypernode. Commented May 25, 2017 at 16:01
  • Have you checked ftp transfer logs or bash history?
    – jscar
    Commented May 26, 2017 at 7:24

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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