Solved

How to apply the replace in tag

EcoMask
Shopify Partner
15 3 3

How to apply product.description | replace: ':', ': '  in

{% render 'accordion', allow_multi_open: true, add_content_class: 'rte', first_item_open: description_is_open, item1_title: description_title, item1_content: product.description %}

 

If I just change it, it doesn't work. Only in object.

Accepted Solution (1)

EcoMask
Shopify Partner
15 3 3

This is an accepted solution.

I figured it out, create a variable and assign it to render.
{% assign product_description_space = product.description | replace: ':', ': ' %}


{% render 'accordion', allow_multi_open: true, add_content_class: 'rte', first_item_open: description_is_open, item1_title: description_title, item1_content: product_description_space %}

View solution in original post

Reply 1 (1)

EcoMask
Shopify Partner
15 3 3

This is an accepted solution.

I figured it out, create a variable and assign it to render.
{% assign product_description_space = product.description | replace: ':', ': ' %}


{% render 'accordion', allow_multi_open: true, add_content_class: 'rte', first_item_open: description_is_open, item1_title: description_title, item1_content: product_description_space %}