Forums / Templates, Stylesheets, Page Layout / Site Suddenly Not Affected by my CSS Changes

Site Suddenly Not Affected by my CSS Changes

Locked

Started by needainstall on 2 Feb 2010, 9:24 PM · Views: 1,822

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Feb 2010, 9:24 PM
#1
needainstall avatar

needainstall

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

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??

ZC 1.3.8a on Linux with lots o' mods

2 Feb 2010, 10:09 PM
#2
needainstall avatar

needainstall

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

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!

ZC 1.3.8a on Linux with lots o' mods

2 Feb 2010, 10:27 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.php/Customisation_-_Templates_-_Stylesheets

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.