Overview
Understanding Shopify Sections Architecture
Shopify themes use sections to create modular, reusable content blocks. Each section is stored inside the Sections folder of the theme.
A section typically contains:
HTML structure
Liquid logic
Theme settings schema
Dynamic content rendering
Sections allow merchants to add and configure content visually through the theme editor.
CSS styling is stored separately inside the Assets folder.
This separation ensures:
Clean architecture
Easy maintenance
Reusable design components
Purpose and Benefits of Shoppable Video Sections
A shoppable video section improves both user experience and business outcomes.
It helps merchants:
Showcase products visually
Highlight priority products
Improve conversion rates
Reduce navigation friction
Create modern, interactive storefronts
Customers benefit from:
Better product understanding
Visual product demonstration
Faster purchasing decisions
Shoppable videos are especially effective for:
Fashion stores
Electronics stores
Beauty products
Lifestyle brands
File Structure Requirements
Before implementation, it is important to understand Shopify's theme file structure.
Two files must be created:
Section file location:
Sections/shoppable-video-section.liquid
CSS file location:
Assets/shoppable-video.css
The Liquid file defines structure and settings.
The CSS file defines styling and layout behavior.
Both files must exist for proper functionality.
Creating the Liquid Section File
Follow these steps carefully:
Go to Shopify Admin.
Navigate to Online Store.
Click Themes.
Click Edit Code.
Open the Sections folder.
Click Add a new section.
Enter the name: shoppable-video-section
Click Create.
Shopify will create:
shoppable-video-section.liquid
This file will define the entire video section.
Adding the Liquid Section Code
After creating the file, open:
shoppable-video-section.liquid
Paste the Liquid file content you received.
Add your code here
This Liquid file defines:
Video container
Product linking structure
Section settings schema
Block configuration logic
The section schema enables Shopify to recognize configurable settings and video blocks inside the theme customizer.
The Liquid file controls frontend rendering.
It determines:
How videos appear
How products are linked
How layout behaves
Creating the CSS File
CSS controls visual appearance.
Follow these steps:
Inside Edit Code, open Assets folder.
Click Add a new asset.
Select Create a blank file.
Choose CSS.
Enter file name: shoppable-video
Click Create.
Shopify will create:
shoppable-video.css
Adding the CSS Styling Code
Open:
Assets/shoppable-video.css
Paste the CSS content you received.
Add your code here
This CSS file controls:
Video layout
Section spacing
Product overlay positioning
Hover effects
Responsive behavior
Without CSS, the section may appear unstructured or misaligned.
Connecting CSS with the Liquid Section
The Liquid file must reference the CSS file.
Inside shoppable-video-section.liquid, ensure it includes CSS reference logic.
Add your code here
This instruction tells Shopify to load the CSS file when the section appears.
This ensures styling is applied correctly.
Adding the Section in Theme Customizer
After creating both files, the section becomes available inside the theme editor.
Follow these steps:
Go to Online Store.
Click Customize.
Click Add Section.
Search for: Shoppable Video Section
Click to add it.
Save changes.
The section will now appear on your store.
Adding Video Blocks in the Section
The section supports video blocks.
Blocks allow multiple videos inside one section.
Follow these steps:
Open Theme Customizer.
Select the Shoppable Video Section.
Click Add Block.
Select Video Block.
Upload video or provide video URL.
Associate products if supported.
Save changes.
Each block represents one video item.
Blocks allow unlimited scalability.
Understanding Section Settings and Blocks
Shopify sections have two configuration levels:
Section settings control:
Section title
Layout options
Background styling
Block settings control:
Individual videos
Linked products
Media positioning
The Liquid schema defines these settings.
Add your code here
This schema structure allows Shopify to dynamically generate customization controls.
Limitations and Constraints
Important limitations include:
Video performance depends on file size
Large videos may slow page load
Mobile responsiveness must be handled in CSS
Browser compatibility must be considered
Additionally:
Shopify does not host extremely large videos efficiently
External video hosting may be preferable
Common Mistakes and Best Practices
Many implementation issues occur due to file misplacement or naming errors.
Typical mistakes include:
Creating the section in the wrong folder
Incorrect file naming
Not linking CSS file
Forgetting to paste Liquid schema
Not saving theme changes
Uploading unsupported video formats
Another frequent mistake is modifying Liquid structure incorrectly, which can break dynamic rendering.
Article by
code4sh
Author of this blog post. Sharing insights and expertise.