Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    help question Having more than 1 "stand-out" category

    Hi guys and girls,

    I've made 1 of my categories stand out following the instructions in tpl_categories.php, my question is, is it possible to have more than 1 category that stands out using this method?

    Thanks in advance !

    Shirley

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

    Default Re: Having more than 1 "stand-out" category

    Looks to me like you would just copy and paste another set of that code that you uncommented in the tpl_categories.php file. That is, where you uncommented the
    PHP Code:
     case ($box_categories_array[$i]['path'] == 'cPath=3'):
    $new_style 'category-holiday';
    break; 
    lines, you copy that and paste it in one or more times, each time making sure you change the cPath=3 part to reflect your category's id number. As far as I know you can make as many case statements as you needed this way.

    Rob

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

    Default Re: Having more than 1 "stand-out" category

    And you can change

    $new_style = 'category-holiday';

    to

    $new_style = 'category-halloween';

    or anything you want in each of those cases, if you want them to look different from each other.
    Just style each class in your stylesheet:

    a.category-holiday {}
    a.category-halloween {}
    a.category-easter {}
    ...

  4. #4
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: Having more than 1 "stand-out" category

    Thanks guys, I actually tried that before posting, but it turns out that I made a typo in the stylesheet hence it didn't work (-_-')

    Thanks for your help ! (^v^)

 

 

Similar Threads

  1. v155 More than 6000 entries on "Who's Online"
    By harry2cool in forum General Questions
    Replies: 3
    Last Post: 23 Mar 2016, 07:59 PM
  2. Is there an Addon for "MULTI" Group Pricing Options? (more than 2)
    By jnspire in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Apr 2011, 10:15 AM
  3. Homepage "Featured" - Can I Display More than 2?
    By solotripper in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Nov 2010, 05:35 PM
  4. Replies: 1
    Last Post: 2 Jun 2009, 06:53 PM
  5. More than one type of "category"
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 20 Nov 2007, 11:16 AM

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