Embed klaviyo email signup form
-
Hey, for whatever reason I cannot manage to embed the newsletter signup form on a page. I tried out +HTML and + Shortcode but neither works. Any idea what causes the problem?
I tried to investigate and chrome says this: "Scripts that have a dependency on [wc-settings, wc-blocks-checkout] must be loaded in the footer, klaviyo-klaviyo-checkout-block-editor-script was registered to load in the header, but has been switched to load in the footer instead. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059"
Hope you can help me out here. Thanks in advance :)
-
hey! what does the shortcode or embed code look like?
-
Hey, its this one: <div class="klaviyo-form-WMgwYi"></div>
I saw the form today and subscribed for test purposes, went all fine and now again I cannot see it anymore on copytheory.org
-
Hey, I think you need to do this:
Wherever you want this form in the gridder, you have to add it using +more -> +html:
<div class="klaviyo-form-WMgwYi"></div>
<script type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=PUBLIC_API_KEY"></script>Where PUBLIC_API_KEY needs to be your correct API key.
Furthermore, in Lay Options, you need to check the setting "Disable Ajax."You may also want to disable any caching plug-ins to rule out them being the cause.
At the moment, I can see it:If you want to, you can also send me your WP admin login to info@laytheme.com if you want me to take a closer look to see if you did it right.
I also code custom websites or custom Lay features.
šæ Email me here: šæ
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options ā Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it