For your inquiries: [email protected]
Follow me here:
Linkedin: / kamba-tukebele
x: https://x.com/kambatukebele
instagram: / kambatukebele
Learn Shopify liquid: https://www.youtube.com/watch?v=09cgBx7Z6lc&list=PLBGv42WcXbm3ybjafwGrYEHymapX_ylUT
Learn Shopify Development: https://www.youtube.com/watch?v=UZrcEKFXfic&list=PLBGv42WcXbm2Qmkg73b4mt-XNyOuxIPPc
This is the final video of our Shopify Sections & Blocks series!
In this episode, we focus on one of the most important concepts when working with JavaScript in Shopify sections: section.id.
We explain why section.id matters, how it helps us target the correct section instance, and how to use it safely when adding JavaScript functionality—like sliding our Collection List container left and right without conflicts.
This concept is essential when the same section can appear multiple times on a page.
🎯 What You’ll Learn in This Video
• What section.id is and how Shopify generates it
• Why targeting sections globally can break your JavaScript
• How to scope JavaScript to a specific section instance
• Using section.id to control left & right sliding behavior
• Best practices for JavaScript in Shopify sections
Download
0 formats
No download links available.
34 Using section.id for JavaScript | Shopify Sections & blocks Project Series | NatokHD