Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,523
    Plugin Contributions
    0

    Default How to change colors.

    I just installed the latest newest version of Zen Cart 2.0

    Right now I only have the default responsive template. How can change the color from black to another color like in the bar on the top and the sideboxes and the footer? Something for now.


    Thanks
    Wade

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: How to change colors.

    If you're planning to customise/create your own template using the Zen Cart Responsive Template as a base then the recommended way would be to clone it using this plugin - https://www.zen-cart.com/downloads.php?do=file&id=2087.

    Also, it would now would be a good time to learn how to use your browser's Developer Tools function. With that you can identify the styles (within your stylesheet) that need editing. Start by reviewing this from the Docs - https://docs.zen-cart.com/user/templ...lors-and-fonts and the following, as an example:

    Name:  Screenshot 2024-04-11 154436.jpg
Views: 34
Size:  77.8 KB

    Inspecting the top bar (right click -> inspect) you can see in the above screenshot that that element has an id of 'navMainWrapper' which is styled (in the right column) with a background:#333 (black)

    You would, in this case, remove #navMainWrapper from line #46 of /includes/templates/responsive_classic/css/stylesheet_colors.css

    and create a new entry of
    Code:
    #navMainWrapper {
    background: #FF0000;
    }
    to change it to red, for example.

    The path to stylesheet_colors.css is obviously for responsive_classic and would be different once you have cloned it.
    Last edited by simon1066; 11 Apr 2024 at 03:51 PM.
    Simon

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: How to change colors.

    If you switch to the Bootstrap template:
    https://docs.zen-cart.com/user/template/bootstrap/

    Color changing is built into your admin. So no file changing required.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: How to change colors.

    Quote Originally Posted by swguy View Post
    If you switch to the Bootstrap template:
    https://docs.zen-cart.com/user/template/bootstrap/

    Color changing is built into your admin. So no file changing required.
    Agreed.

    If, however, you just gotta on responsive_classic, I would first use lat9's clone a template to make a copy of responsive_classic to have a fallback for testing etc.

    Then, create stylesheet_zcustom.css in the new CSS folder and put all extra styles there.

    Makes the next upgrade sooo much easier and you know exactly where to find changes you made.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: How to change colors.

    Admittedly, when you gotta, you gotta.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. How can I change link colors in header, without changing all other link colors?
    By coreyalderin in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 20 Jun 2012, 03:17 AM
  2. How do I change the below colors?
    By cameo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Jun 2011, 12:46 AM
  3. How to change the colors?
    By spleify in forum General Questions
    Replies: 2
    Last Post: 12 Oct 2010, 04:57 PM
  4. How do I change these colors?
    By shamis in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Dec 2007, 02:50 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