Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello! I would like to add a collapsible row; in this case only to the sunglasses pages of my shop. not anywhere else. How can I do this? Here's my website.
https://www.xmine23.com/collections/occhiali-da-sole-1/products/sbm782-black-copia
I've tried with metafields, but i'cant figure out how to use it.
Thanks in advance.
@vivvy1522 Where are the collapses?
sorry, I forgot to save hehe. if you refresh the page you can see where the collapsible row should be. thanks
possible with metafield.
other shortcut method is:
paste in theme.liquid at the end
{% if product.handle == 'products/sbm782-black-copia' %}
.product-text>.toggle {
display: block;
}
{% else %}
.product-text>.toggle {
display: none;
}
{% endif %}
</style>
Thanks for your answer, but it not work.
@vivvy1522 ohh sorry little mistake
{% if product.handle == 'sbm782-black-copia' %}
.product-text>.toggle {
display: block;
}
{% else %}
.product-text>.toggle {
display: none;
}
{% endif %}
</style>
. try this one