Рет қаралды 3,732
A quick and easy way to conditionally show or hide sections & blocks based on if they have Metafield content, or if the Metafield is blank.
📢 STAY UPDATED
Subscribe to my newsletter: ed.codes/newsletter
KZfaq won’t always show you my latest videos, subscribe to be notified and see other content that I don't post on KZfaq.
🙏 SUPPORT THE CHANNEL ON PATREON
Request and vote on videos, get discounts, and be listed as a community member.
/ edcodes
📚 MY SHOPIFY CODING EBOOK
ed.codes/shopify-coding-handbook
Learn HTML, CSS and Shopify Liquid from the beginning and specifically for Shopify.
👨🏼💻 WHO AM I?
Hey! My name is Eduard.
I teach the tech side of starting and running a Shopify store.
I'm a professional web developer, but my goal is to make Shopify easy with simple and straight-to-the-point videos.
Visit my website: ed.codes
Join "Shopify DIY" on Discord
Chat with me and other store owners and developers:
ed.codes/community
🛠 CODE SHOP
ed.codes/shop
Pre-built sections & features for Shopify 2.0 themes, often replacing the need for apps. Copy and paste the code into your theme.
👍 MY FAVOURITE APPS & THEMES
ed.codes/tools
⏭ CHAPTERS
00:00 Example #1 - Blocks
00:39 Example #2 - Sections
01:28 Solutions?
02:57 Sections vs Blocks
03:13 Hiding sections with CSS
06:38 Hiding a block with JS
13:34 Bug fix
15:12 Newsletter & Patreon
#Shopify #Metafields #CustomLiquid