Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default 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 ) 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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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
    .

    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.

 

 

Similar Threads

  1. CSS / Stylesheet changes not saving
    By donzi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2013, 10:55 PM
  2. html editor suddenly not Saving changes in v1.3.8a
    By Jaybird in forum Customization from the Admin
    Replies: 1
    Last Post: 16 May 2011, 01:24 AM
  3. Suddenly, changes are not being applied
    By beyre in forum General Questions
    Replies: 9
    Last Post: 18 Mar 2011, 04:36 AM
  4. My Server Upgraded And It Affected My Site!!!
    By OneBadSuperbird in forum General Questions
    Replies: 10
    Last Post: 7 Mar 2008, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR