LovePrestashop Posted July 22, 2010 Share Posted July 22, 2010 Hi, I want to removed the product short description from the Feathure Prodcuts block and make the grid shorter. Please see the image below, that is what I need.I am sure it is doable but I don't know how. If someone could help me with it will be mush appreciated. BIG thanks! Link to comment Share on other sites More sharing options...
rocky Posted July 22, 2010 Share Posted July 22, 2010 Edit modules/homefeatured/homefeatured.tpl and {* comment out *} line 15: <a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'} Then change the liHeight on line 6: {assign var='liHeight' value=342} to: {assign var='liHeight' value=242} to reduce the height by 100px. Link to comment Share on other sites More sharing options...
LovePrestashop Posted July 22, 2010 Author Share Posted July 22, 2010 BIG thanks to Moderator! It works. Just one thing, I don't need to change the height from 342 to 242, it automatically change its size. Is this because I am using latest version of PS? Link to comment Share on other sites More sharing options...
rocky Posted July 22, 2010 Share Posted July 22, 2010 No, the liHeight is used to determine the height of the ul element only. The height of the li is actually automatically calculated. The background behind the featured products block won't look right if you don't get the liHeight right though. Link to comment Share on other sites More sharing options...
acheung48 Posted September 19, 2011 Share Posted September 19, 2011 Hi Rocky, Thank you for your comment. I have a similar problem. I try to comment out the line as your mention by different express: <div class="product_desc"><!-- <a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'} --></a></div> <div class="product_desc">{*<a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}*} </a></div> {*<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}/a></div>*} <!-- <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'} </a></div> --> Or event delete this line, but the resullt does not change. The pixel setting is: {assign var='liHeight' value=242} Could you give me any suggestions? Alex Link to comment Share on other sites More sharing options...
acheung48 Posted September 19, 2011 Share Posted September 19, 2011 More: <a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'} and * <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></div> But all are not worked. Alex Link to comment Share on other sites More sharing options...
acheung48 Posted September 19, 2011 Share Posted September 19, 2011 I reduce the "Product Desc" from 9em to 0em in global.css so that the desc is remove from upper section of the raw. Does it affect the result? Alex Link to comment Share on other sites More sharing options...
Recommended Posts