Jump to content

How to remove "Short description" in the "Featured products block"?


Recommended Posts

You can do that by commenting out some code in the template file of the module. If, for example, your PrestaShop is installed in a folder called prestashop directly in the public_html directory on your hosting account, the path to the file would be public_html/prestashop/modules/homefeatured/homefeatured.tpl. Find the following code in that file and comment it out:

 

<div class="product_desc">
<a href="{$product.link}" title="{l s='More' mod='homefeatured'}">

{$product.description_short|strip_tags|truncate:130:'...'}</a></div>

 

You can comment it out by putting an exclamation mark and two hyphens after the first bracket (e.g. <!--div class) and two hyphens before the last bracket for that string of code (e.g. div-->).

 

When you make changes to template files you should also enable the Force compile option from the back office of your store (Preferences tab>Performance sub-tab>Force compile set to Yes). In this way you'll be able to see the changes when you refresh the frontend of the site. When you're done with the changes to the template file, disable the force compile.

 

Hope this helps.

  • Like 1
Link to comment
Share on other sites

Nice. Thanks a lot, hxd.

 

You can do that by commenting out some code in the template file of the module. If, for example, your PrestaShop is installed in a folder called prestashop directly in the public_html directory on your hosting account, the path to the file would be public_html/prestashop/modules/homefeatured/homefeatured.tpl. Find the following code in that file and comment it out:

 

<div class="product_desc">
<a href="{$product.link}" title="{l s='More' mod='homefeatured'}">

{$product.description_short|strip_tags|truncate:130:'...'}</a></div>

 

You can comment it out by putting an exclamation mark and two hyphens after the first bracket (e.g. <!--div class) and two hyphens before the last bracket for that string of code (e.g. div-->).

 

When you make changes to template files you should also enable the Force compile option from the back office of your store (Preferences tab>Performance sub-tab>Force compile set to Yes). In this way you'll be able to see the changes when you refresh the frontend of the site. When you're done with the changes to the template file, disable the force compile.

 

Hope this helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...