Need help with adding a sign up form to my website?

cubbytime
Visitor
2 0 0

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 

Replies 4 (4)

Dirk
Shopify Staff
2294 253 512

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

cubbytime
Visitor
2 0 0

Ok great -Please see the screenshot below, showing you the klaviyo code, the error message and where I'm trying to place the code 🙂


Error showed .pngKlaviyo code .pngWhere I'm trying to save the code .png
Dirk
Shopify Staff
2294 253 512

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

Dirk
Shopify Staff
2294 253 512

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