Setup guide
How to duplicate your theme and add a snippet in Shopify
Go to Online Store › Themes, open the … menu on your theme and click Duplicate, so you work on a copy. On the copy, open … › Edit code, add a new file in the snippets folder, paste the code, save, and preview. Publish the copy only when everything looks right.
Steps and menu names checked against Shopify’s Help Center and the Shopify admin on 28 November 2026.
Duplicate your theme (your backup)
Open your themes. In your Shopify admin, click Online Store under Sales channels. The Themes page opens.
Open the theme menu. On your current theme, click the … button (Click for more theme actions).
Duplicate. Click Duplicate. A copy named “Copy of …” appears under Draft themes after a moment.
Open the code editor
Open the copy’s menu. Under Draft themes, click the … button on the copy.
Edit code. Click Edit code. The code editor opens with folders on the left: assets, config, layout, locales, sections, snippets and templates.
Add a snippet file
Make a new file. Hover over the snippets folder and click New File… (or right-click it and choose New File…).
Name it. Type the file name the tool gives you, for example est-gwp.liquid, and press Enter.
Paste and save. Paste the code from the tool and click Save (Ctrl+S, or ⌘+S on a Mac).
Render it. Open the file the tool names (often layout/theme.liquid) and paste the render line where it says, for example just before </body>. Save.
{% render 'est-gwp' %}
Or paste into a Custom Liquid block (no code editor)
Many snippets don’t need the code editor at all. Shopify’s own themes have a Custom Liquid section and block that run the code you paste, and you can remove it with one click.
Open the theme editor. Online Store › Themes, then click Edit theme on your theme (or on the copy, to test first).
Pick the page. Use the menu at the top of the editor to open the page you want, for example a product page.
Add Custom Liquid. In the left sidebar, click Add section (or Add block inside a section, such as Product information) and choose Custom Liquid.
Paste and save. Paste the code into the Liquid code box, check the preview, and click Save.
Preview, then publish
Preview. Back on the Themes page, open the copy’s … menu and click Preview. Test the change in the preview window.
Publish. When it all works, click Publish on the copy. Your old theme stays in your theme library as the backup.
Tools that need this
- Selling Plan Picker Snippet
Add subscription options to sections where the app block doesn’t show, and find out why a widget is missing.
- Free Gift Kit
A Buy X Get Y discount that makes a gift free, plus a removable theme snippet that adds the gift to the cart.
- Size Chart Builder
Build size charts in cm and inches, give every product its chart in one import, and add a pop-up to your theme without an app.
- Product Schema Fixer
Clear Search Console’s “Missing field hasMerchantReturnPolicy / shippingDetails” warnings with one theme snippet, and check any product page.
- Leftover App Code Finder
Scan your theme ZIP for code uninstalled apps left behind, then download a cleaned copy to test as a new theme.
- Liquid Snippet Studio
Free shipping bar, sticky add to cart, countdown, trust badges, swatches and more: fill a form, paste one Custom Liquid block. No app.
- Custom Font Installer
Convert your font to WOFF2 in the browser and get the code to use it for headings or body text in any theme.
- Store Locator Builder
Turn a spreadsheet of your shops or stockists into a store locator page with a map, search and directions. No app, no map key.
- robots.txt Builder
Edit your Shopify robots.txt.liquid safely: block AI training bots or extra pages, keep Shopify’s defaults, and test any URL first.
- Hide Sold Out
Hide sold-out variants in Horizon or Dawn with one line of CSS, and remove out-of-stock products from every automated collection at once, with an undo.
- Horizon CSS Snippets
Copy-ready custom CSS for Shopify’s Horizon theme, plus the settings that make common changes without code.
More setup guides
- Where to find the Shopify settings our tools use
Exact menu paths for each Shopify setting a tool relies on.