lastresmellizas Posted June 3, 2016 Share Posted June 3, 2016 (edited) Hello friends, listing category, short description is not italicized text that you selected in (Yellow). When I go into details of the product if you see italics. I can do to see italics ?? See attachment to view clearer. Prestashop 1.6.1.5 Thanks and regards Edited June 3, 2016 by lastresmellizas (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted June 4, 2016 Share Posted June 4, 2016 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. 1 Link to comment Share on other sites More sharing options...
lastresmellizas Posted June 5, 2016 Author Share Posted June 5, 2016 (edited) Hi rocky, thanks for answering, but I work in the popular page, there do not want it to work. It has to be in the category list page, I send image to make it look clearer. Thanks and regards Edited June 5, 2016 by lastresmellizas (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted June 6, 2016 Share Posted June 6, 2016 I'm confused, since that's exactly the part that my code changes. Making the change above should allow formatting in the highlighted part of the image. Link to comment Share on other sites More sharing options...
lastresmellizas Posted June 6, 2016 Author Share Posted June 6, 2016 (edited) Hi rocky, thanks for answering, I send you a link so you can see as out doing what you are commenting me: test Store 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 June 6, 2016 by lastresmellizas (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted June 6, 2016 Share Posted June 6, 2016 Oh, I see. The <em> tags are there, but they are being styled as normal text. You'll need to add the following code to your global.css to make <em> tags italic: em { font-style: italic } Link to comment Share on other sites More sharing options...
lastresmellizas Posted June 7, 2016 Author Share Posted June 7, 2016 (edited) 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: Home page (text POPULARES): after the modification of the line 128 (product-list.tpl) List of categories (No text): after the modification of the line 128 (product-list.tpl) I have added to global.css: em {font-style: italic} Thanks and regards Edited June 7, 2016 by lastresmellizas (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted June 7, 2016 Share Posted June 7, 2016 Have you fixed this now? Everything looks fine to me. I see the description with italics on both the featured products and product listing, as you can see below: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now