Broken HTML [Help]

Saeed3
New Member
2 0 0

Hi,

 

So for my featured product section on my website, I modified the description a little bit. The original description snippet was

{{ product.description }}

but I simply changed it to

{{ product.description | truncate: 200 }}

and this pops an error message up in the theme customizer. If I remove/revert this line, the error disappears.m3KKefB Also in the code editor, nothing is highlighted in red or anything. So is there any problem with this? Does this "HTML" error cause any SEO or any problems at all? And how can I resolve this?

 

Thanks

 

0 Likes
KetanKumar
Shopify Partner
14144 1649 5076

Hello, @Saeed3 
I have tried this in my store is working fine. 
please let me know your theme name and preview theme URL.
So I will check proper and proper solution.

Thanks, 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Saeed3
New Member
2 0 0
chintanjoshi
Tourist
10 0 1

Hello @Saeed3 

 

Change code as per below. and Update me

{{ product.description | truncate: 200 }}
{{ product.description | strip_html | truncate: 200 }}

 

Have a good day

0 Likes