Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2009
    Location
    Somerset, UK.
    Posts
    70
    Plugin Contributions
    0

    Default Renamed css file but still uses the copy

    Hi All,

    Just starting to get into cascading stylesheets but still very much a beginner!!

    I should add that this is on a WAMP server on my XP laptop.

    As a backup I copied stylesheet.css to stylesheet_orig.css and then edited stylesheet.css but the settings in the copy were still being picked up.

    I removed the copy and then it used stylesheet.css

    I tend to make copies like this when I am editing files so can anyone explain what is going on please and if there is anything I can do to prevent this behaviour?

    Ta.
    FTF

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Renamed css file but still uses the copy

    Zen Cart automatically loads all stylesheets in the folder according to specific rules. If you want to save a backup copy, name it stylesheet.bak (or pretty much anything but .css).

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    In the css folder there is a Readme file. You guessed it, I'm going to suggest you read it.

    It tells you about the way that ZC picks up css files, and the nifty things you can do because of this method. But here's the secret: rename your old file as stylesheet.old because all files that end in .css will be picked up and used.

    [ Oops! Glenn beat me to it. But he cheated -- his answer is shorter. ]

    Rob

  4. #4
    Join Date
    Jul 2009
    Location
    Somerset, UK.
    Posts
    70
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    Many thanks to you both.

    Presumably I can't do rem statement like this either cos it certainly has a strange effect! How should I do it if I want to keep the old value handy?

    A.category-top, A.category-top:visited {
    /* color: #008000; /*
    color: #966fb5;
    text-decoration: none;
    }


    Regards.
    FTF

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    Quote Originally Posted by FredTheFifth View Post
    Many thanks to you both.

    Presumably I can't do rem statement like this either cos it certainly has a strange effect! How should I do it if I want to keep the old value handy?

    A.category-top, A.category-top:visited {
    /* color: #008000; /*
    color: #966fb5;
    text-decoration: none;
    }


    Regards.
    FTF
    Change that to

    Code:
    /*	color: #008000; * /
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Jul 2009
    Location
    Somerset, UK.
    Posts
    70
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    Hi Mary,

    The code didn't copy/paste into my post very well. It was tabbed out like you show, so I'm not sure what you are suggesting.

    Regards.
    FTF

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Renamed css file but still uses the copy

    Should be :

    A.category-top, A.category-top:visited {
    /* color: #008000; */
    color: #966fb5;
    text-decoration: none;
    }

    The closing rem tag is the opposite of the opening tag. You had them the same.

  8. #8
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    Quote Originally Posted by rstevenson View Post
    In the css folder there is a Readme file. You guessed it, I'm going to suggest you read it.

    It tells you about the way that ZC picks up css files, and the nifty things you can do because of this method. But here's the secret: rename your old file as stylesheet.old because all files that end in .css will be picked up and used.

    [ Oops! Glenn beat me to it. But he cheated -- his answer is shorter. ]

    Rob
    Thank you for info...
    Free Articles Directory | Article Submission | Submit Articles
    http://www.articles3.com

  9. #9
    Join Date
    Jul 2009
    Location
    Somerset, UK.
    Posts
    70
    Plugin Contributions
    0

    Default Re: Renamed css file but still uses the copy

    Quote Originally Posted by stevesh View Post
    Should be :

    A.category-top, A.category-top:visited {
    /* color: #008000; */
    color: #966fb5;
    text-decoration: none;
    }

    The closing rem tag is the opposite of the opening tag. You had them the same.
    Thanks!!

    Yunno, I reckon I could have looked at that for days and not spotted it!!!

    Cheers.
    FTF

 

 

Similar Threads

  1. Replies: 7
    Last Post: 31 Dec 2014, 04:58 PM
  2. welcome email still uses old logo
    By hara in forum General Questions
    Replies: 4
    Last Post: 2 Jul 2011, 09:21 PM
  3. Renamed File Site Not Working
    By spetznaz2588 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jul 2008, 04:04 PM
  4. Copy Product without attributes still copies the attributes
    By oavs in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 29 Apr 2008, 11:30 PM

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