Hello @ArafatWeb
Best Solution (Direct Code Customization in Dawn):
We’ll add a conditional block in your main-collection-banner.liquid or main-collection.liquid file to show a video if you’ve uploaded one, else fallback to the default banner.
Let’s proceed step-by-step:
Step 1: Upload Your Video
Go to Shopify Admin → Content → Files.
Upload your MP4 video (keep size < 20MB for performance).
Step 2: Add a Metafield to Each Collection (Optional but Ideal)
To dynamically assign videos to different collections:
Go to Settings → Custom data → Collections.
Click “Add definition”:
Name: Header Video
Namespace and key: custom.header_video
Type: File → Select “File” (not image-only)
Check “Accept video”
Then edit the Ahmad Tea collection → Scroll to Metafields → Upload the video file (or paste the previously uploaded video file URL).
Step 3: Edit main-collection-banner.liquid
Go to Online Store → Themes → Dawn → Edit Code
sections/main-collection-banner.liquid
{%- if collection.image -%}
{%- endif -%}
Replace or modify it like this:
{%- assign video = collection.metafields.custom.header_video -%}
{% if video %}
{% elsif collection.image %}
{% endif %}