Jump to content

Enable HTML on Product-listing Page.


Recommended Posts

Can I Enable HTML for the short description on Product-listing Page (Category Page).

 

i have use some bullets, line-breaks and hyper-link in "short description" 

though it is all fine on Product Page but it seems a mess on product-listing Page's List View.

 

 

Why html is stripped off on product listing page (short description)?

And if in some way i enable it, would that be a Risk by any means?

 

 

 

Link to comment
Share on other sites

One more thing in short description, I have added a link (size chart image) to display in a fancy box.

 

I have tried as you've said

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

And also this

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

 

But Didnt get the desired result

 

Any suggestions..

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

  • 4 months later...
  • 2 months later...

For the record - you also need to replace the "p"  class="product-desc" with "div" in your global.js, without it switching between grid and list won't work.

 

I tried this and still had issues however I'm amending the /theme/js/global.js file

 

I'm wondering if I'm better off editing another file?

 

Thoughts on this?

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

  • 4 months later...
×
×
  • Create New...