Re: How can I remove Category names in the main window?
Original poster apparently solved his own problem, but was not community minded enough to share his solution.
So for anyone following this thread, here is a solution that you can use. 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.
Re: How can I remove Category names in the main window?
Or ... to save pain and sorrow later for a quick fix ...
Just comment out this line in your override file ...
Code:
// require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
This way you will know "what" you ripped out of the code in your override ... :smile:
Re: How can I remove Category names in the main window?
To remove categories on the main page...
In the admin panel, go to Configuration>Layout Settings
Towards the lower middle, change "Categories - Always Show on Main Page"
Re: How can I remove Category names in the main window?
I believe this was a bit more indepth in that the categories were not wanted to display at all on the main page when a Category was selected from the Cat box ...
I could be mistaken ... this is but my first cup of coffee ... :unsure:
Re: How can I remove Category names in the main window?
I may have misunderstood the issue at hand...
I am new to Zen and I found this post when I was trying to solve a problem I was having. I had the categories listing in the center area of the main entry page.
I'm just having my morning coffee :)
Re: How can I remove Category names in the main window?
seriously, i give this guy credit that no one answered his qn..
however, there is no need to be so rude here.
Categories-Tabs Menu ON/OFF
that this the settings u shld have changed. a bit of try and error wld have given u the answer actually.
Re: How can I remove Category names in the main window?
Sorry, the Categories-Tabs Menu was not what the OP was talking about. The fix was posted above by Kobra.
Re: How can I remove Category names in the main window?
This can be disabled in Admin>Product Listing>Show SubCategories on Main Page while navigating - set this to 0
Re: How can I remove Category names in the main window?
Good to have this update for the thread. I expect this option didn't exist a year and some ago or else Ajeh would have mentioned it... she writes the code, after all...
MMMM wait a minute - it's not the product listing the OP was talking about. Actually I don't understand the usefulness of what he wanted, but he wanted a category with subcats (and no immediate products) to not show the subcats when the top cat was selected. I guess he had a reason...
Re: How can I remove Category names in the main window?
Quote:
Originally Posted by
Ajeh
Or ... to save pain and sorrow later for a quick fix ...
Just comment out this line in your override file ...
Code:
// require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
This way you will know "what" you ripped out of the code in your override ... :smile:
Hello,
Long ago this change was made to my site. I would like to know how to restore the ripped code so that subcategory names display once more and I can then just hide or unhide them at will or using css.
I have searched in developer tool for the code changes you posted but couldn't find them. What other code might have been removed from which files?
www. r a g a n d m a g p i e .co.uk