Edit a shopify liquid code
Budget: $10 – $30 USD
Hi!
I need to automatically include a script in all my product descriptions.
But I need it REALLY in the description. Not below or above it. That it is possible to edit in the product editing section.
I want to add a script in "product.description" automatically on all products.
For example, this is my description code in the products template.
"<div id="product-description" class="card__collapsible">
<div class="card__collapsible-content">
<div class="rte text--pull">
{{ product.description | remove: 'data-section type="product"' }}
</div>
</div>
</div>
I've tried adding like this:
{{ product.description | remove: 'data-section type="product"' | script.js | asset_url }}
and it didn't work, is it possible to do this?
I want to add a script in "product.description" automatically on all products.
I need to automatically include a script in all my product descriptions.
But I need it REALLY in the description. Not below or above it. That it is possible to edit in the product editing section.
I want to add a script in "product.description" automatically on all products.
For example, this is my description code in the products template.
"<div id="product-description" class="card__collapsible">
<div class="card__collapsible-content">
<div class="rte text--pull">
{{ product.description | remove: 'data-section type="product"' }}
</div>
</div>
</div>
I've tried adding like this:
{{ product.description | remove: 'data-section type="product"' | script.js | asset_url }}
and it didn't work, is it possible to do this?
I want to add a script in "product.description" automatically on all products.