Shopify - Useful Links

How To Create a Custom Liquid Section in Shopify

0 Shares
0
0
0
0
0
0
0

I have written an article that explains how to create a custom HTML section. This article will show you how to create a Custom Liquid section to add custom liquid codes.

Follow the steps below to learn how to do that:

  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit, and then click Actions > Edit code.
  • In the Sections directory, click Add a new section with the name section-custom-liquid
{{ section.settings.custom_liquid }}
{% schema %}
{
   "name": "Custom Liquid",
   "settings": [
   {
      "type": "liquid",
      "id": "custom_liquid",
      "label": "Custom Liquid",
      "info": "Add app snippets or other liquid code to create advanced customizations."
   }],
   "presets": [
   {
      "name": "Custom Liquid"
   }]
}
{% endschema %}

Save it

To add a Custom Liquid section, click on Customize (Theme Editor) > Sections > Add Section > Custom Liquid.