Hi all,
I’d like to hide the “shipping messages” under the add to cart AND all the product description accordions under it for the Gift Card product ONLY. Attaching a screenshot for what I would like to remove.
URL to gift card product page: https://www.urbanframes.ae/products/giftcards
Thanks!
Generally, you would want to create a new template for “Gift Cards” with all these bits emitted from the original template.
But if you want to achieve this without doing any coding work yourself something like this should work fine. (Not at all best practice but should work just fine if you paste this somewhere in your product section file. Generally its under Sections (In Shopify code editor) > product-template or static-product or even just product )
{% if product.handle == "giftcards" %}
{% endif %}
What this code does is simply add a new style rule to hide all the extra bits outside of your description except the last one if our product handle is this giftcards
Thank you! Didn’t think about creating a new template. Did that and customized it as I want without any coding - all from the theme editor tool.
2 Likes