Studio1one Posted November 30, 2013 Share Posted November 30, 2013 Hi peps, I can not use <br> at my short description field, what can be wrong? Im using 1.5.5.0 and not default theme. //Patrik Link to comment Share on other sites More sharing options...
ibndawood Posted November 30, 2013 Share Posted November 30, 2013 Ofcourse you can use <br/> tag while adding the product description but it is upto the theme developer either to use with the tag or just strip them. Please check your theme files it is usually in product-list.tpl. Link to comment Share on other sites More sharing options...
Studio1one Posted November 30, 2013 Author Share Posted November 30, 2013 Ofcourse you can use <br/> tag while adding the product description but it is upto the theme developer either to use with the tag or just strip them. Please check your theme files it is usually in product-list.tpl. okey, and how can I see that in the code? ( I have the product-list.tpl in front of me) Link to comment Share on other sites More sharing options...
ibndawood Posted November 30, 2013 Share Posted November 30, 2013 <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></p> Line 45. As you can see it has strip_tags. So all tags like <br/> are stripped. If you remove that strip_tags. It should work. Link to comment Share on other sites More sharing options...
El Patron Posted November 30, 2013 Share Posted November 30, 2013 be careful of what you ask for. The short description is generally stripped of 'html' as it's generally used as the description for your product by search engines. I am pretty darn sure that is why it's stripped, much like category descriptions. Link to comment Share on other sites More sharing options...
ibndawood Posted November 30, 2013 Share Posted November 30, 2013 be careful of what you ask for. The short description is generally stripped of 'html' as it's generally used as the description for your product by search engines. I am pretty darn sure that is why it's stripped, much like category descriptions. I agree with El Patron. I don't advice you to remove strip_tags because in addition to reason mentioned above it could lead to improper HTML tags as the short description is truncated after 360 chars and if there are open tags they could just break the whole page design. Link to comment Share on other sites More sharing options...
Studio1one Posted November 30, 2013 Author Share Posted November 30, 2013 be careful of what you ask for. The short description is generally stripped of 'html' as it's generally used as the description for your product by search engines. I am pretty darn sure that is why it's stripped, much like category descriptions. okey? so how can I then make it look nice on the product description? If I want to have it look like this? - High performance and water resistant, against sweat & tears. - Silky and soft, never cakey or powdery - Fairest foundation allows buildable cover Link to comment Share on other sites More sharing options...
El Patron Posted November 30, 2013 Share Posted November 30, 2013 okey? so how can I then make it look nice on the product description? If I want to have it look like this? - High performance and water resistant, against sweat & tears. - Silky and soft, never cakey or powdery - Fairest foundation allows buildable cover you can't..unless you hack the code... Link to comment Share on other sites More sharing options...
El Patron Posted November 30, 2013 Share Posted November 30, 2013 and I am not saying 'don't do it', I am saying make sure you check any after affects, i.e. sitemap would be a good place to start...submit it after your change and see if for example google complains Link to comment Share on other sites More sharing options...
Recommended Posts