Can you wrap JSON sections in html? (Or can you add non JSON code in JSON templates?)

dwightco
Excursionist
21 0 2

If I want to have two JSON sections side-by-side inside a flexbox so I can have blocks on each section, can that be done?

Is it possible to somehow add html inside the JSON templates and wrap/embed the sections inside them?

Reply 1 (1)
LitExtension
Shopify Partner
2000 332 408

Hi @dwightco,

- JSON sections: You just need to create template liquid and declare section.
Code declare: {% section 'header' %} , refer https://shopify.dev/themes/architecture/sections
- JSON templates: This is not possible, it is only declared with json structure, you cannot add HTML code for it.

Hope it clear to you.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!