Jump to content

Italics in the short description categories list


lastresmellizas

Recommended Posts

PrestaShop strips tags from the short description to keep them simple. You can change this on line 128 of product-list.tpl (assuming you're using the default PrestaShop v1.6.1.5 theme):

						{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}

Remove the strip_tags part like this:

						{$product.description_short|truncate:360:'...'}

I hope it works for you.

  • Like 1
Link to comment
Share on other sites


Hi rocky, thanks for answering, I send you a link so you can see as out doing what you are commenting me:

 


 

In the product Blusa I put italics, as you can check out POPULARES text, you do not have to go out and not come out ready text when the category.

 

List category (is where you have to do in italics)


 

 

 

Thanks and regards

Edited by lastresmellizas (see edit history)
Link to comment
Share on other sites


Hi rocky, thanks for answering, there is a problem, when I edit the file: (product-list.tpl)

 

Line 128: {$ product.description_short | truncate: 360: '...'}

 

No sale text list of categories and is in POPULARES (see pictures)

 

These images are before making the change in the line 128 of file (product-list.tpl)

 

And look how it goes now:



 


I have added to global.css:

 

em {font-style: italic}

 


 

 

Thanks and regards

post-313713-0-35102300-1465288140_thumb.png

post-313713-0-59280900-1465288141_thumb.png

Edited by lastresmellizas (see edit history)
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...