Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    176
    Plugin Contributions
    0

    Default Hide one category in LH box

    I've placed a SALE banner on the RH side of a website.

    Don't want to also have a SALE category showing on the LH box so I created a blank category with the Sale sub-category below it. I thought I could then avoid that appearing on the LH side but as there are prefixes for the categories it show as > (blank).
    How can I get rid of this?

    site is dimplesdaisysanddandelions co uk

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Hide one category in LH box


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

    Default Re: Hide one category in LH box

    It's kind of a kludge, but I have done this:

    When you create the category, in the Category Name field, do something like this: <div class="hideme">Category Name </div>, then in the stylesheet: .hideme {display:none;}

    The space where the name would be is still there, so you'll need to watch where you put it, sort order-wise.

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Hide one category in LH box

    That's a beautiful kludge - why didn't I think of that?

    Another quick solution is to edit:

    includes/templates/yourtemplate/sideboxes/tpl_categories.php

    your looking for line about 32:

    Code:
    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 ) {
    change it to:

    Code:
    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 
    or $box_categories_array[$i]['name']=='name of category to skip') {

  5. #5
    Join Date
    Mar 2009
    Posts
    176
    Plugin Contributions
    0

    Default Re: Hide one category in LH box

    Many thanks - I changed the tpl_categories.php - worked fine.

 

 

Similar Threads

  1. Hide price in one category
    By Congerman in forum Templates, Stylesheets, Page Layout
    Replies: 28
    Last Post: 15 Jul 2016, 08:21 PM
  2. v151 Hide one category from category side box
    By robbie269 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Feb 2014, 03:35 PM
  3. Hide category count -- on only ONE category
    By reneep in forum Setting Up Categories, Products, Attributes
    Replies: 31
    Last Post: 28 Apr 2010, 08:13 PM
  4. Hide or Password Protect only one Category?
    By Boggled in forum Setting Up Categories, Products, Attributes
    Replies: 25
    Last Post: 1 Sep 2008, 12:42 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