Re: Product Description HTML/Rich text collapsing

Solved

Product Description HTML/Rich text collapsing

Tom_Baker3
Tourist
3 1 0

Hi,

I am editing body copy for all products and have written out in body Rich text and HTML, however on live it is collapsing everything into one large paragraph.

Product Page

BE Product Description (image below)

Body copy.PNG

Accepted Solution (1)
Tom_Baker3
Tourist
3 1 0

This is an accepted solution.

I resolved the issue by searching strip_html within the Product-template.liquid file and deleting 

View solution in original post

Replies 3 (3)

IttantaTech
Shopify Partner
525 55 103

Hello , @Tom_Baker3 

Please make sure that any string filter is not applied in product description

 

To check this,

Go to your product template file (product.liquid in many case),

find product.description

 

It should be like this :- {{product.description}}

 

and if it is like this:- {{product.description | strip_html}} then remove the filter part .

 

 

Thanks,
Ittanta Technologies Pvt. Ltd. | Shopify Expert
If reply is helpful, please Like and Accept Solution.
To hire us, contact us at [email protected]
Tom_Baker3
Tourist
3 1 0

Thank you IttantaTech,

 

I have found line (below) can you advise if I am to remove the escape as well.

"description": "{{ product.description | strip_html | escape }}",

Should it then read as

"description": "{{ product.description }}",

I have found this written repeated at the bottom of product.liquid I will replace both.

Tom_Baker3
Tourist
3 1 0

This is an accepted solution.

I resolved the issue by searching strip_html within the Product-template.liquid file and deleting