Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Change the link colour of selected category...

    Ok, I've done this before and cannot remember how!

    I'm trying to change the colour of the selected category in the categories sidebox.

    For example, all of the category links are grey. I would like the selected category link to appear pink.

    Anyone know the solution?

  2. #2
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Change the link colour of selected category...

    Quote Originally Posted by Alex Clarke View Post
    Ok, I've done this before and cannot remember how!

    I'm trying to change the colour of the selected category in the categories sidebox.

    For example, all of the category links are grey. I would like the selected category link to appear pink.

    Anyone know the solution?
    All of this is in the stylesheet.css;

    /* categories box parent and child categories */
    A.category-top, A.category-top:visited {
    color: #008000;
    text-decoration: none;
    }
    A.category-links, A.category-links:visited {
    color: #004080;
    text-decoration: none;
    }
    A.category-subs, A.category-products, A.category-subs:visited, A.category-products:visited {
    color: #FF0000;
    text-decoration: none;
    }
    SPAN.category-subs-parent {
    font-weight: bold;
    }
    SPAN.category-subs-selected {
    font-weight: bold;
    }
    /* end categories box links */


    Change what ye like, save changes, voila!
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Change the link colour of selected category...

    Thanks for that!

    I was actually using a copy of the template_default stylesheet, which didn't contain that code. :|

    Thanks again for the help. :)

  4. #4
    Join Date
    Jul 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: Change the link colour of selected category...

    ....anyone know how to make categories menu with a diferent colour menu. For example: Category 1 will be red, Category 2 will be blue etc.
    Any sugestions!

  5. #5
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Change the link colour of selected category...

    This is something that I'd like to be able to do too! In fact I was thinking about it last night. :|

    If I find out how to do this I'll post here.

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

    Default Re: Change the link colour of selected category...

    tpl_categories.php has directions for this in the comments at the top of the file.

    Categories Dressing has more extensive directions, and some example code.

 

 

Similar Threads

  1. v151 Category list box contents - change link bg colour
    By Annie_zaz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Feb 2014, 11:54 PM
  2. how to insert a background colour for a selected category
    By jon22 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Dec 2009, 04:21 PM
  3. Can I change the colour of ONE category?
    By hedgepig in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2008, 11:40 AM
  4. Change colour depending on catogory selected
    By ardgouge in forum General Questions
    Replies: 6
    Last Post: 9 Jun 2007, 03:35 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