Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default How do I not show category text on mainpage

    As all categories will have images I would like to have the textual id of the category turned off and be represented with a cat image only.

    How do I go about doing this?

    Thanks in advance
    IntelCos

  2. #2
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default [Solved]: How do I not show category text on mainpage

    For those that would like to also have this fix.

    Modify the tpl_modules_category_icon_display

    find this code> $category_icon_display_name

    on the main line and remove it. Thats it thats all

    The reason I required this is all my categories will have a image, but I did not want text to show as the image is descriptive for our needs. Thus the end result is you have a linkable cat represented by an image only with title and alt tags.

    your code should look like this(use notepad, cut and copy the code below). Save in pure text format and copy into your overrides directory.

    <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 . '</a>'; ?></div>

    If used, buy the devs coffee cause I'm sure it's a needed fix...
    Last edited by IntelCos; 4 Feb 2007 at 11:44 PM.
    IntelCos

 

 

Similar Threads

  1. Show 4 products from a category as a slide show on mainpage
    By vinnyna in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2011, 05:52 AM
  2. How to make category not show on search?
    By Punkristo in forum General Questions
    Replies: 7
    Last Post: 15 Aug 2010, 12:31 PM
  3. How to put specials above category in mainpage center?
    By aurelius99 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Apr 2008, 01:36 PM
  4. Show category images, not text.
    By JasonM in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Apr 2008, 07:59 AM
  5. Subcategories do not show on mainpage
    By biscayne in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Mar 2007, 12:35 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR