I have tried to put inline code into the footer of my shopify site by going and putting it in “Custom Liquid” directly in the visual editor, as well as trying to put it in the code. Specifically, the theme.liquid section under
Topic summary
A user is attempting to add inline email subscription code to their Shopify site’s footer using the Craft theme but encountering issues.
Methods Attempted:
- Adding code via Custom Liquid block in the visual editor
- Inserting code directly in theme.liquid under the
<body>tag
Suggested Solutions:
- Custom Liquid blocks may not support scripts or complex code due to Shopify’s security restrictions
- Clear browser cache or test in incognito mode to rule out caching issues
- Check if the theme has a separate footer.liquid file, which may be a better location for the code
Current Status:
The discussion remains open, with the original poster asking for specific guidance on where to place the code within footer.liquid.
If you used the Custom Liquid block in the visual editor, it may not work for scripts or complex code. Shopify sometimes strips certain types of code for security reasons.
If you put it in theme.liquid and it still doesn’t work, clear your browser cache or try viewing the page in an incognito window. Also, check if your theme has a footer.liquid file—some themes separate the footer into its own file, and adding the code there might work better.
Where would you put it in the footer.liquid? Thanks so much!