How to create Custom Liquid section in Shopify
Create Shopify Custom Liquid section for your theme
Tupple Application
Last Update il y a 5 mois
Usually, the Custom Liquid section is available on your Shopify theme customization; however, if you cannot find it on the section list, you can follow the guide below to create Shopify Custom Liquid section for your theme.
Step 1 : In your Shopify admin panel, go to “Themes” below the “Online Store” section.
Click “Edit Code” in the dropdown menu next to the “Customize” button of the current theme

Step 2 : Click Add a New Section and give it the name “custom-section.liquid” in the Sections directory.

Step 3 : Add the code below to the section, and then choose “Save” on the right side.
{{ section.settings.custom_liquid }}
"name": "Custom Liquid",
"settings": [
{
"type": "liquid",
"id": "custom_liquid",
"label": "Custom Liquid",
"info": "Add app snippets or other liquid code to create advanced customisation."
}],
"presets": [
{
"name": "Custom Liquid"
}]
}
{% endschema %}
{% schema %}
{"name": "Custom Liquid",
"settings": [
{
"type": "liquid",
"id": "custom_liquid",
"label": "Custom Liquid",
"info": "Add app snippets or other liquid code to create advanced customisation."
}],
"presets": [
{
"name": "Custom Liquid"
}]
}
{% endschema %}

Now, the Custom Liquid section is available in your theme editor. Do step-by-step to add it to your Shopify theme.
Add Custom Liquid to a page
Step 1 : In your Shopify’s theme editor, open the page you want to add the “Custom Liquid” section, click “Add section”, navigate to “Custom Liquid” and select it.

Step 2: In the theme editor, add a Custom Liquid block to the desired section, then click inside the right-side editor field to enter your code.

Step 3: Enter the timer’s Liquid code snippet into the Custom Liquid field to embed the published timer on the page.
Click Save in the theme editor to make it visible on your store.

Step 4: The timer will now appear on the page.
