Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Location
    Palm Springs, California
    Posts
    19
    Plugin Contributions
    0

    Default 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/inde...roducts_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

  2. #2
    Join Date
    Sep 2008
    Posts
    18
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Nov 2008
    Location
    Palm Springs, California
    Posts
    19
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Sep 2008
    Posts
    18
    Plugin Contributions
    0

    Default 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 Code:
    <?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.

  5. #5
    Join Date
    Nov 2008
    Location
    Palm Springs, California
    Posts
    19
    Plugin Contributions
    0

    Default Re: Category Icon WITHOUT Category name



    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

 

 

Similar Threads

  1. Category Name on same line as Category Icon
    By masterrusty in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Jan 2013, 01:33 AM
  2. remove category image / icon from category
    By johnybravo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Sep 2011, 08:13 PM
  3. Removing category image (small icon) from a category page
    By creamcrackers in forum General Questions
    Replies: 4
    Last Post: 28 Feb 2010, 10:45 AM
  4. Icon / image next to category name?
    By gizmo_girl in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Dec 2008, 03:08 AM
  5. Category Icon - Can the Icon be alone, without text?
    By Nathfunstuff in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 May 2008, 04:00 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