1 Attachment(s)
Hide Category Name on Category Page
Ok, maybe I am crazy, but I feel like the category name is showing in to many places when with a category.
I have category ABC and I click the link for ABC on the left Nav to open it. Once in the Category I see ABC not only in the Breadcriumb, but in the nav to the left, as well as just below the breadcrumb centered at the top... Can I remove this one somehow, it seems like overkill.
Here is a screenshot.
Re: Hide Category Name on Category Page
I know a long time has passed since you asked this question. But you can hide the categoryIcon on the product page by commenting out the "includes/template_default/templates/tpl_modules_category_icon_display.php" output so that it simply doesn't ever appear on the product page ... I agree that it's a redundant feature in most cases.
PHP Code:
<?php
/**
* Module Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_category_icon_display.php 4348 2006-09-02 20:50:32Z ajeh $
*/
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY));
/* ?>
<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $category_icon_display_image . $category_icon_display_name . '</a>'; ?></div>
<?php */ ?>
Re: Hide Category Name on Category Page
The instructions above did not work for me.
But what did work was going to my_template/templates/tpl_index_product_list.php and commenting out line 17:
PHP Code:
<!-- <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1> -->