Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Change colour of Product Counts

    Hi there,
    Can anyone point me in the right direction. I want to change the colour of the Products Counter in the Categories sidebox (nb. it lists the number of products).

    I want to keep the main text black but change the colour of the number value and remove the brackets. I know I can probably achieve this with CSS but I need to know which and where in a PHP file that I need to place my class and to remove the brackets.

    thanks

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

    Default Re: Change colour of Products Counter

    The brackets can be removed via the Admin:
    Admin->Configuration->Layout Settings->Categories Count Prefix
    and Categories Count Suffix


    To change the text color, you can likely do it safely by setting a color in CSS for
    Code:
    #categoriesContent.sideBoxContent
    .

    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.

  3. #3
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Change colour of Products Counter

    Perfect - Thanks very much for the quick response

  4. #4
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Change colour of Products Counter

    Sorry DrByte - I was a bit too quick on my reply. I can understand that DIV call no probs - actually I am using the BetterCategories mod - so I can change the text colour in the stylesheet_betterCategoriesEzInfo.css.

    However - I want to split the colours - hence the product name colour remains the original colour and ONLY the product counter number colour is changed.

    Any clues?

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

    Default Re: Change colour of Products Counter

    If you were using the standard Zen Cart categories sidebox, then the non-link text would show in the color you specified via the selector I mentioned earlier.

    As for the so-named BetterCategories mod, you'll have to dig into the code to find out how to add an appropriate span around the numbers and then add a class to the stylesheet to style it.
    .

    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.

  6. #6
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Change colour of Products Counter

    Thanks DrByte - that's the bit I am having trouble with. I am PHP deficient and I don't know where the code is to put the span on. Anyone want to jump in here?

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

    Default Re: Change colour of Products Counter

    try changing the '(' and ')' that were set for prefix/suffix in the admin to be '<span class="myCatCount">' and '</span>', respectively
    .

    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.

  8. #8
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Change colour of Products Counter

    Thanks very much - that worked a treat - excellent - you have opened my eyes up to how I can add CSS through the form field inputs.

 

 

Similar Threads

  1. Change colour of product listing bar
    By Csenge in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2011, 07:31 PM
  2. product listint item title - change colour
    By Justrimless in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2011, 12:41 AM
  3. Howto to change colour of price in product's description
    By momo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Oct 2010, 07:36 PM
  4. Cant Change Product BG Colour...
    By RickHope in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Oct 2009, 10:59 PM
  5. Replies: 1
    Last Post: 29 Sep 2008, 04:32 PM

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