Site Suddenly Not Affected by my CSS Changes
I've got a weird problem that's been puzzling me for hours.
I have a local copy of my site running on windows/xampp (which is apache), and the live version running on linux/apache. I make changes to my local, and when I'm happy, upload to live - a fairly typical setup.
Yesterday however I mad some changes to my theme's stylesheet that looked good locally. But when I uploaded the changed stylesheet to my live server, the changes were not reflected on the site.
I tried everything I could think of. All changes made would take affect locally, but not on the live server.
Finally, out of desperation, I deleted ALL the stylesheet.css files in Classic, Template_default, and my theme, both on the test server and live server.
The live site, while changed, is obviously still loading from a stylesheet. On the other hand my local test site looked like crap - completely unformatted just the way it should be with a blank stylesheet.
Somewhere, either pages are being cached on the live server (I deleted everything from the cache folder just to be safe) or some other weird thing is up.
It's not my browser, as after deleting all the stylesheet.css files I opened the site on a pc which had never been to the site. Still loaded with some css intact.
I'm continuing to work on this, but does anyone have any suggestions as to what's going on??
Re: Site Suddenly Not Affected by my CSS Changes
Found the problem. When I edited the stylesheet a long time ago, I created a backup first and simply named it stylesheet-old.css.
Somehow (can't possibly be my fault :unsure:) the page was pulling from BOTH stylesheet and stylesheet-old.
So, any changes I was making to stylesheet, in some cases were just being overridden by stylesheet-old.
The wackiest things usually have the simplest explanations!
Re: Site Suddenly Not Affected by my CSS Changes
Stylesheets named "styleXXXXXX.css" will be automatically loaded.
If you don't want them auto-loaded, don't name them according to that pattern.
ref http://www.zen-cart.com/wiki/index.p..._-_Stylesheets