Expandable Content on Individual Product Pages Code Error

Expandable Content on Individual Product Pages Code Error

FlyingCow
Visitor
1 0 0

We are trying to add Expandable Content blocks on each of our individual product pages.

ie- drop downs/expandable blocks for ingredients, instructions, disclaimers etc

 

I'm able to do it on EVERY page in the full theme editor, but we need to be able to customize ingredients & instructions on individual product pages as they're all a bit different.

 

I was given a block of code to add in a new section on the theme code editor (our theme is Showcase). But I'm immediately given a syntax error:

 

  • Liquid syntax error (line 28): Unexpected character / in "block in [section.blocks](http://section.blocks)"

 

I've tried removing one or both of the "/" in that line, but neither will work. 

Reply 1 (1)

gr_trading
Shopify Partner
2024 148 205

Hi @FlyingCow ,

 

You need to connect your collapsible section to metafield, please refer to the below video and how to setup.

 

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee