Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove category titles on main page

Remove category titles on main page

Locked

Views: 876

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Dec 2010, 2:01 AM
#1
ken_joy avatar

ken_joy

New Zenner

Join Date:
May 2006
Posts:
62
Plugin Contributions:
0

Remove category titles on main page

Hi, using 1.3.9h here, and have been reading TONS of posts about this issue, but can't seem to find the answer still. When I click on the category in the left column, it brings up the page on the right that shows the products in that category. However, at the top of the page, it also shows a text version of the sub-categories, which is duplicating what is already visible in the drop-down in the left column. I've attached a screen shot of my page as an example. You can see in the top main page are the text "buttons" 'for children' 'for men' 'for women', etc. I'd like to remove these. These AREN'T the category TABS that you can turn on/off. I'm sure I'm overlooking this in the configuration setting, but I think I've tried every on/off there is, and still no success.

I really appreciate any help anyone can provide, and apologize for asking what I'm sure has been asked a million times before :)

Here's the screen shot.

19 Dec 2010, 2:23 AM
#3
ken_joy avatar

ken_joy

New Zenner

Join Date:
May 2006
Posts:
62
Plugin Contributions:
0

Re: Remove category titles on main page

Hey! I finally found a post here that answered my question, so I thought I'd share the solution:

##################################################__
You would need to edit the tpl_modules_category_row.php ...

You can add this to your template and overrides directory and comment out the two required statements and they will not run ...
##################################################_

SO.... found the file at (it's in /includes/templates/template_default/templates/tpl_modules_category_row.php and commented out the two lines that started with the word require. (Please note, there's a '*/' just before the first line that needs to be commented out. You need to MOVE that symbol to the bottom of the file, just before the ?> or the commenting out won't work. So your file should look something like this:

* require(DIR_WS_MODULES . zen_get_module_directory('category_row.php'));

  • require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    */?>

Then, once I edited and saved it, I copied it back to the /includes/templates/template_default/templates/tpl_modules_category_row.php and also to the 'templates' folder for my customized template (I'm using another template other than the default zencart template.) AND IT WORKS! :)

SUGGESTION: Before you copy the file back to your directory and overwrite the original, it's a good idea to name the original file something like tpl_modules_category_row_OLD.php so if you need to revert back to the original, you can :)

Even though this is a minor code change, it's still a good idea to backup your files before making any changes. :)

19 Dec 2010, 2:25 AM
#4
ken_joy avatar

ken_joy

New Zenner

Join Date:
May 2006
Posts:
62
Plugin Contributions:
0

Re: Remove category titles on main page

Sorry, didn't realize I had! My bad. Not intentional.