Forums / Templates, Stylesheets, Page Layout / Trying to remove the Details button from featured products on the main page (only)

Trying to remove the Details button from featured products on the main page (only)

Started by bodkin77 on 22 Jul 2013, 5:39 AM · Views: 817

Results 1 to 2 of 2
22 Jul 2013, 5:39 AM
#1
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Trying to remove the Details button from featured products on the main page (only)

In my /includes/modules/MY_TEMPLATE/featured_products.php file in line 72 I edited out the following code in an attempt to remove the Details button from the featured products on the main page (only)...

. zen_image($template->get_template_dir('details.gif', DIR_WS_TEMPLATE, $current_page_base,'images').'/details.gif').'</a></div>')

When I do this in stuffs up the site sufficiently. Could someone please tell me how to remove it?

Note: please see the end of line 72 below. This is what I tried...

    'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<div class="product_title"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . '<div class="box_image"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a></div>') . '<div class="price">'.$products_price.'</div>'.'<div class="product_detail"><a href="'. zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' ;

My site is https://www.asia-sell.com

22 Jul 2013, 3:16 PM
#2
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Re: Trying to remove the Details button from featured products on the main page (only)

Just let ya'll know that I solved it by including the following in stylesheet.css

div.product_detail a img {
display: none;
}