Page 1 of 1

Stylesheet changes not appearing

Posted: Fri Mar 06, 2015 1:34 am
by Caradiaz
Hello,

I'm upgrading my website to OC2.0 and when making changes to the stylesheet (under catalog/view/theme/default/stylesheet), the changes don't show on the website. Please note that I'm not creating a new template or theme but rather overwriting the existing stylesheet.css file (after saving the original version under a different name).

Any pointers would be most appreciated as I'm at the end of my tether with this! I've read lots and lots comments in various forums and websites but they seem to refer to problems incurred by creating new templates or themes.

One more thing in case it helps working out the problem, changing the permission to access the file or even the folder changes the look of the catalog site but it applies changes not been made by myself.

I hope someone can shed some light on what to me is a complete mystery!

Many thanks in advance.

Re: Stylesheet changes not appearing

Posted: Fri Mar 06, 2015 12:17 pm
by gedielson
It's a trivial matter, but, try to hit Ctrl + F5 tree times after making changes to style to reload the browser avoiding cache.

Re: Stylesheet changes not appearing

Posted: Fri Mar 06, 2015 9:52 pm
by Caradiaz
Thank you for your reply, gedielson. I had already tried clearing the cache and reloading but to no avail, I'm afraid.

Thanks anyway for responding.
:-)

Re: Stylesheet changes not appearing

Posted: Fri Mar 06, 2015 10:10 pm
by viethemes
Maybe your code has syntax error, so it does not affect the front-store. Could you provide your site url, so we can take a look at it closer?

Re: Stylesheet changes not appearing

Posted: Sat Mar 07, 2015 4:49 am
by Dhaupin
View the source of the stylesheet and see if it changed there. If it didnt, confirm you are actually over-writing it. If it wont upload/save/change, then you prob locked yourself out of the permissions. Change it back to something you can edit (may require SSH if you did something like 644).

If you use a service such as CloudFlare then the store is cached externally. Things like CSS wont update until you either clear their cache or change/add the name of the stylesheet.

We made a mod to automatically break caches on local files when saved/updated. Its not ready for the market yet but you can hit me up if you need it desperately.

Re: Stylesheet changes not appearing

Posted: Tue Mar 10, 2015 10:50 pm
by Caradiaz
viethemes wrote:Maybe your code has syntax error, so it does not affect the front-store. Could you provide your site url, so we can take a look at it closer?
Dhaupin wrote:View the source of the stylesheet and see if it changed there. If it didnt, confirm you are actually over-writing it. If it wont upload/save/change, then you prob locked yourself out of the permissions. Change it back to something you can edit (may require SSH if you did something like 644).

If you use a service such as CloudFlare then the store is cached externally. Things like CSS wont update until you either clear their cache or change/add the name of the stylesheet.

We made a mod to automatically break caches on local files when saved/updated. Its not ready for the market yet but you can hit me up if you need it desperately.
Thank you, viethemes and Dhaupin, very much for your comments. I'll follow our pointers and see what happens!

Thanks again,
Caradiaz

Re: Stylesheet changes not appearing

Posted: Tue Jan 24, 2017 5:53 pm
by kashmir kkit
it could be due to your hostging , some hosting providers enable "VARNISH" on your domain which is known as caching HTTP rverse proxy that speeds up delivery. you can try to disable varnish on your cpanel and check.