Collapsible row problem metafield

Collapsible row problem metafield

Xmine23
Excursionist
25 0 4

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.

Replies 5 (5)

mrashid
Shopify Partner
169 17 15

@Xmine23 Where are the collapses?

- Need a Shopify developer? Chat on WhatsApp +923068683199
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Xmine23
Excursionist
25 0 4

sorry, I forgot to save hehe. if you refresh the page you can see where the collapsible row should be. thanks

mrashid
Shopify Partner
169 17 15

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>
- Need a Shopify developer? Chat on WhatsApp +923068683199
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Xmine23
Excursionist
25 0 4

Thanks for your answer, but it not work. 

mrashid
Shopify Partner
169 17 15

@Xmine23 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 

- Need a Shopify developer? Chat on WhatsApp +923068683199
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution