Shopify themes, liquid, logos, and UX
Hi There
I'm trying to add a sign up form to a section on my website - this is the code
<div class=""klaviyo-form-YtaTma""></div>
shopify is saying the JSON is wrong - help please, I'm lost !
Thanks in advance
Hey, @cubbytime
Happy to look into this. Where abouts are you trying to add this to your theme? Within the theme editor in a section or in a particular page that you've created? Also, could you provide a screenshot of the error you are seeing when attempting to paste the code?
If there is anything else I can help you with, please let me know.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Ok great -Please see the screenshot below, showing you the klaviyo code, the error message and where I'm trying to place the code 🙂
Hey, @cubbytime
Thanks for the info. Is there a particular reason you are trying to add a contact-form block into the klaviyo.liquid file?
In my experience, you would paste that block code into either an HTML section within your theme editor, OR from within a page/blog post. I'd recommend checking out Klaviyo's documentation on sign-up forms here. From there, you can also get in touch with their support team for installation assistance with their app.
If there is anything else I can help you with, please let me know.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Gotcha, so as you can see from the screenshot in Klaviyo's instructions, you are to add the shortcode to wherever you want that form to show. This means you will add within your theme editor into an HTML section. The code does not go into your themes hardcoded theme files (klaviyo.liquid).
You can add it to your homepage by going to Admin > Online Store > Themes > Customize
If there is anything else I can help you with, please let me know.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025