Created
December 29, 2021 18:42
-
-
Save ihorduchenko/4427ed059479a597bcf2658d6948c0e6 to your computer and use it in GitHub Desktop.
Shopify sections - "liquid" section type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- if section.settings.boxed -%} | |
<div class="grid-container contained"> | |
{%- endif -%} | |
{{ section.settings.liquid }} | |
{%- if section.settings.boxed -%} | |
</div> | |
{%- endif -%} | |
{% schema %} | |
{ | |
"name": "Custom liquid", | |
"tag": "section", | |
"class": "liquid-section", | |
"settings": [ | |
{ | |
"type": "checkbox", | |
"id": "boxed", | |
"label": "Boxed" | |
}, | |
{ | |
"type": "liquid", | |
"id": "liquid", | |
"label": "Liquid code" | |
} | |
], | |
"presets": [ | |
{ | |
"name": "Custom liquid", | |
"category": "Text" | |
} | |
] | |
} | |
{% endschema %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment