Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    114
    Plugin Contributions
    0

    Default Hide subcategory-name from listing

    Hi everybody!
    I hope someone can help me with this one. I cant find the file to edit myself.

    I dont want the subcategorys name to show in listing. I just want the categorypicture to show. The name on subcategory should still show in the menu though.

    Can someone please help me with this and save the weekend??

    The site is in development so check the Casio-category. its the only one with categorys in it.

    www.blingofsweden.se/klockor

    Best regards,
    Ola

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,961
    Plugin Contributions
    25

    Default Re: Hide subcategory-name from listing

    This is one of those things where there is just no handle to affect the name by itself in the stylesheet. It will require a file edit.

    In /includes/templates/your_template/category_row.php, find this
    PHP Code:

        
    //    $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);

        
    $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>');

        
    $col ++; 
    and remove

    . '<br />' . $categories->fields['categories_name']

    to get
    PHP Code:
        //    $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);

        
    $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)  . '</a>');

        
    $col ++; 

  3. #3
    Join Date
    Jul 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Hide subcategory-name from listing

    It worked!
    Many thanks for your help! Have a nice weekend!

    /Ola

 

 

Similar Threads

  1. Subcategory Listing
    By jaxsonsmom in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Mar 2007, 06:57 PM
  2. Subcategory Listing
    By chksdtr in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Mar 2007, 07:18 PM
  3. hide new and featured on listing page
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Dec 2006, 12:09 PM
  4. I need to hide a column in Product Listing
    By jeffmic in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 26 Oct 2006, 06:48 PM
  5. Different layouts in subcategory listing pages
    By loostaq in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Aug 2006, 10:00 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
  •