How to create a custom Liquid block for your Shopify theme
Last updated: March 11, 2025
Overview
Themes that are not available in the Shopify Theme Store, or are otherwise not supported by Shopify, do not have a native Custom Liquid block option in the theme customization screen.
Follow the instructions below to add a Custom Liquid block option to any theme.
To create a custom Liquid block:
Login to Shopify
Click Sales Channels
Click Online Store
Click the three dot menu next to your theme
Click Edit Code
Click the Sections folder
Click Add a new section
Ensure liquid is the selected radio button
In the File Name field, enter
section-custom-liquidClick Done
Remove the default code that appears in your new section-custom-liquid.liquid file
Copy the following code:
{{ 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 %}Paste the code into the blank
section-custom-liquid.liquidfileClick Save