Forums / Templates, Stylesheets, Page Layout / Removing the sub-category links on the subcategory pages.

Removing the sub-category links on the subcategory pages.

Views: 947

Results 1 to 3 of 3
1 Aug 2012, 5:22 PM
#1
thebigkick avatar

thebigkick

New Zenner

Join Date:
Jan 2012
Location:
Montreal
Posts:
84
Plugin Contributions:
0

Removing the sub-category links on the subcategory pages.

How do I remove the links created by ZC when I add sub-categories? I have my own HTML links that I used and don't have a need for the link created by the CMS. I'd prefer to stay away from the CSS display: none hack. Also, I only need to remove these from within one of my main categories. This may be impossible to do with out targeting the div with CSS using the ZC styleshhet system (c_abc-123). This isn't working for me and is breaking the Footer styles.

Cheers

1 Aug 2012, 5:47 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Removing the sub-category links on the subcategory pages.

You don't say where you don't want them to display, but if you want them removed from all categories, check Admin - Configuration - Product Listing - Show SubCategories on Main Page while navigating. If you only want to remove them for certain categories, you'll need to write code that checks for the category id and turns that display off depending on the id or use the page-specific stylesheets you mentioned. I wouldn't call display: none; a 'hack', just another CSS property.

1 Aug 2012, 6:44 PM
#3
thebigkick avatar

thebigkick

New Zenner

Join Date:
Jan 2012
Location:
Montreal
Posts:
84
Plugin Contributions:
0

Re: Removing the sub-category links on the subcategory pages.

Ok. Thanks

But in this case it would be a hack no? Since it isn't the suggested solution.