Forums / Templates, Stylesheets, Page Layout / Category Icon WITHOUT Category name

Category Icon WITHOUT Category name

Locked

Views: 820

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 Dec 2008, 10:23 PM
#1
johnandrobin avatar

johnandrobin

New Zenner

Join Date:
Nov 2008
Location:
Palm Springs, California
Posts:
19
Plugin Contributions:
0

Category Icon WITHOUT Category name

Can anyone help me with this issue?

We want to have the 'Category Icon' featured at the head of each product page, but do not want to have the category name appear there underneath the icon.

In this link:

http://www.johncrummay.com/shop/index.php?main_page=product_info&cPath=66_68&products_id=182

you can just see the Category Name in the top left hand corner of our large product image. We have forced its position by setting the the height of the div containing the icon to the height of the image inside it, but it leaves the Category Name underneath it.

We have worked out that the file controlling whether this icon appears (which is controlled via Admin>Configuration>Product Info) is the module 'category_icon_display.php', which we have copied to our overrides.

However, we don't know enough about writing code to amend this file so that one of the three conditions at the bottom of this file calls the IMAGE ONLY to display, and NOT the category name too.

Anyone help?

Thanks in advance
Robin

9 Dec 2008, 3:04 PM
#2
ibezenned avatar

ibezenned

New Zenner

Join Date:
Sep 2008
Posts:
14
Plugin Contributions:
0

Re: Category Icon WITHOUT Category name

Were you able to resolve this? I see the image that says "T-Shirts" above the product image. What text are you referring to?

9 Dec 2008, 3:40 PM
#3
johnandrobin avatar

johnandrobin

New Zenner

Join Date:
Nov 2008
Location:
Palm Springs, California
Posts:
19
Plugin Contributions:
0

Re: Category Icon WITHOUT Category name

The large 'T-SHIRTS' next to the image of the man wearing sunglasses is actually one long image.

The words we want to get rid of are the very small 'T-SHIRTS' that appears in the top left hand corner of the large product image. It is called with the category icon image, and is referred to in the code as 'product_name'. The three settings in the Admin section all retain this name, though you can switch the image off in two of them.

We want to switch the name off and keep just the image.

9 Dec 2008, 8:48 PM
#4
ibezenned avatar

ibezenned

New Zenner

Join Date:
Sep 2008
Posts:
14
Plugin Contributions:
0

Re: Category Icon WITHOUT Category name

Try opening "includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_modules_category_icon_display.php" file, and look for:

<?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_GET['cPath'], 'NONSSL') . '">' . $category_icon_display_image . $category_icon_display_name .  '</a>'; ?>

Try removing the "$category_icon_display_name . " and see if that helps.

9 Dec 2008, 11:53 PM
#5
johnandrobin avatar

johnandrobin

New Zenner

Join Date:
Nov 2008
Location:
Palm Springs, California
Posts:
19
Plugin Contributions:
0

Re: Category Icon WITHOUT Category name

:clap:

Yep! That did it. I was on the right track, except I was trying to delete the name in the wrong document... so thanks.

Robin