Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2005
    Posts
    97
    Plugin Contributions
    0

    Hide subcategoris in the center column or main page

    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/inde...index&cPath=65


    Thank you,

  2. #2

    Default 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..
    Quote Originally Posted by 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:
    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
    www.dogfusion.com

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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)

  4. #4
    Join Date
    Jul 2005
    Posts
    97
    Plugin Contributions
    0

    Default Re: Hide subcategoris in the center column or main page

    Thanks for the replies. I got it now.

  5. #5
    Join Date
    Jun 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Hide subcategoris in the center column or main page

    Quote Originally Posted by 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/inde...index&cPath=65


    Thank you,

    nice looking site...

    whould you mind sharing how to do the popUp Images?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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)

  7. #7
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default Re: Hide subcategoris in the center column or main page

    Quote Originally Posted by kuroi View Post
    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.

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

 

 

Similar Threads

  1. How do I hide the column on the main page?
    By anonymous479 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 5 Jun 2011, 05:56 AM
  2. How do I add Banner (Image) in the center column on the main page?
    By kubio in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2009, 06:59 PM
  3. help: subcategories in center column, main page
    By layoyo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Nov 2008, 02:04 PM
  4. How to Remove or Hide the sub-categories on the center page?
    By tokion in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jan 2008, 08:11 AM
  5. Random Image on Main Page Center Column
    By bekinky in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Nov 2007, 05:01 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