Forums / Templates, Stylesheets, Page Layout / Hide subcategoris in the center column or main page

Hide subcategoris in the center column or main page

Locked

Views: 2,591

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
4 Aug 2006, 7:57 AM
#2
dogfusion avatar

dogfusion

Zen Follower

Join Date:
Jun 2006
Posts:
83
Plugin Contributions:
1

Re: Hide subcategoris in the center column or main page

I borrowed this from a contributer here with the screen name of kobra. I haven't used it, but I think it's what you want..

kobra:

I have tested it for just a couple of days so if you find a glitch please post it here.

This is only for version 1.3.x:

You should be using the override system and have a folder for your template files in the locations where you are altering files.

custom will be the folder for this example:

In your /includes/templates/custom/ folder create another folder named 'templates'

find the tpl_index_categories.php file located in the /includes/templates/template_default/templates/
folder and ftp it to your PC.

Use your editor, notepad or? and open the file and locate this code:

<!-- BOF: Display grid of available sub-categories, if any --> <?php /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); ?> <!-- EOF: Display grid of available sub-categories -->
> and delete all of this code from the BOF line to and including the EOF line.
> 
> Save it and FTP it to your custom folder: /includes/templates/custom/templates/
> 
> Now when you select a category, there will be no display of the sub-categories that reside under it.  Use this only if you do not want them to display.

Attempting upgrade and hoping for the best
https://www.dogfusion.com

4 Aug 2006, 8:44 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Hide subcategoris in the center column or main page

Unusually there's no switch available in Admin to turn these off, so the solution that DogFusion quotes above would an appropriate and ... errr ... comprehensive solution. Personally, I'd just stick a couple of slashes "//" at the beginning of the line starting require($template ...) to comment it out.

If you're don't want to get involved in overrides an alternative would be to add the following to your style sheet> .categoryListBoxContents {display:none}But please be aware that the subcategory information would still be generated and downloaded to your visitors' browsers, just not displayed when it got there.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Aug 2006, 6:33 AM
#4
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

Re: Hide subcategoris in the center column or main page

Thanks for the replies. I got it now.

5 Aug 2006, 4:57 PM
#5
rlantigua avatar

rlantigua

New Zenner

Join Date:
Jun 2006
Posts:
51
Plugin Contributions:
0

Re: Hide subcategoris in the center column or main page

gems14k:

Hi,

When the top category is clicked, the subcategories is dispalyed on the center column. How can I hide it?

http://www.nokoria.com/shopping/index.php?main_page=index&cPath=65

Thank you,

nice looking site...

whould you mind sharing how to do the popUp Images?

5 Aug 2006, 5:30 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Hide subcategoris in the center column or main page

Not really my business to give away gem14k#s secrets, but this one is so widely known that it scarcely counts ... it looks to me as though this site is using the Image Handler add-in available from the downloads section, for which the hover images are actually just a nice side feature - behind the scenes, automatic generation and optimisation of all three image sizes is, for many of us, an even greater benefit.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

26 Aug 2008, 11:44 PM
#7
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Hide subcategoris in the center column or main page

kuroi:

Personally, I'd just stick a couple of slashes "//" at the beginning of the line starting require($template ...) to comment it out.

I just wanted to say thanks for this solution. I just added a couple // like Kuroi said and Voila! No more subcategories displaying in the center column when a top level category is clicked.

:cool:

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *