Liquid, JavaScript, themes, sales channels
Hi @Roseandthorn,
Because all your collections use the same template, when you add a video, it will be visible to all. You have 2 ways to solve it:
- You add a condition to display the video by handle collection, so the video will only show for the collection that meets the condition.
- You create a new template and select it for the collection you want to display videos.
Are you using OS1.0 or OS2.0 theme? Please send me the theme name, I will guide it for you.
Hi @Roseandthorn,
Please go to sections > video.liquid file and add code here:
Code:
{% if request.page_type == 'collection' and collection.handle != 'collection handle' %}hidden{% endif %}
with collection handle: is the handle of the collection you want to display the video.
Hope it helps!
Hi! What are the code editing instructions to do this same thing but using the LALVIV theme?
What are the code editing directions for LALVIV theme?
User | RANK |
---|---|
37 | |
27 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023