Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025