Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default categories display-layout issues

    Hi,

    Here are my specs:
    zencart 1.3.8
    Dreamweaver cs4
    www.joezjewellery.com

    I'm trying to have the the categories show with only the image I've created - no text (categories title).

    Also, when I go to a product page the text then shows up as a link below the image. I would like that to be removed also since the image is a link in it's self.



    Thanks all for your help.

    Suzanne
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	removeTitle.jpg 
Views:	149 
Size:	19.9 KB 
ID:	6988   Click image for larger version. 

Name:	removeLink.jpg 
Views:	137 
Size:	19.4 KB 
ID:	6989  

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: categories display-layout issues

    To eliminate the category name in the subcat listing grid, you will need to edit /includes/modules/your_template/category_row.php. Find this around line 39:
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '<br />' $categories->fields['categories_name'] . '</a>'); 
    and delete the
    . '<br />' . $categories->fields['categories_name']
    near the end.

    You would edit the product info page file at
    <!--bof Category Icon -->

    in a similar manner.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: categories display-layout issues

    If you want to eliminate the category heading above the category image on the product listing page, add to your stylesheet

    hi#productListHeading {display: none;}

  4. #4
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: categories display-layout issues

    Quote Originally Posted by gjh42 View Post
    To eliminate the category name in the subcat listing grid, you will need to edit /includes/modules/your_template/category_row.php. Find this around line 39:
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '<br />' $categories->fields['categories_name'] . '</a>'); 
    and delete the
    . '<br />' . $categories->fields['categories_name']
    near the end.

    You would edit the product info page file at
    <!--bof Category Icon -->

    in a similar manner.
    I changed the first file but noting happened.
    Were do I find the other files to edit?

    thanks for your help!

    Suzanne

  5. #5
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: categories display-layout issues

    Quote Originally Posted by gjh42 View Post
    To eliminate the category name in the subcat listing grid, you will need to edit /includes/modules/your_template/category_row.php. Find this around line 39:
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                               
    'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '<br />' $categories->fields['categories_name'] . '</a>'); 
    and delete the
    . '<br />' . $categories->fields['categories_name']
    near the end.

    You would edit the product info page file at
    <!--bof Category Icon -->

    in a similar manner.
    Quote Originally Posted by gjh42 View Post
    If you want to eliminate the category heading above the category image on the product listing page, add to your stylesheet

    hi#productListHeading {display: none;}
    this worked fine! thanks. S

    PS there is typo in your text hi#... should be h1#... Just in case someone else tries this.

  6. #6
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: categories display-layout issues

    for any one with the same issue here is how I finally removed the text below the image:
    go to this file in your overide folder
    public_html/store/includes/templates/custom/templates/tpl_modules_category_icon_display.php

    remove this text:
    $category_icon_display_name .

    That's it!

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: categories display-layout issues

    Good for you for finishing this on your own! I thought there might be a separate file referenced from the main product info file, but didn't take time to hunt it down last night.
    And thanks for catching the typo. When the eyes get bleary they can be hard to see.

    The category_row.php edit will not actually do anything in your store, as it only affects category/subcategory listings. All of your categories are top cats, so there will be no category listing pages.

 

 

Similar Threads

  1. annoying categories sidebox display issues
    By hardwiredtemplates in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2011, 11:05 PM
  2. Replies: 5
    Last Post: 13 Sep 2010, 11:03 PM
  3. Separate Top Categories from Sub-Categories in Layout?
    By msmith29063 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Feb 2008, 06:56 PM
  4. Major issues with Column Layout / Grid Layout for Products Listing
    By kinget in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jul 2007, 10:11 PM

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