We have noticed that Wix.com handles embedded HTML differently than other platforms. If you are having issues getting a Sprout Studio email list form to work on your wix.com website, try the following steps:

Step 1: In Sprout Studio

In your Sprout Studio account, copy the embed code of the signup form you wish to embed.

Step 2: Customize the embed code

Here is where it gets a little tricky. We have to edit the embed code we get from Sprout Studio to work with Wix.com.

Example code from Sprout Studio (use your own of course, not this one):

<script id='sprout-studio-email-campaign-script-100' type="text/javascript" src='https://sproutstudio.com/sprout_email_campaign_embed.php?email_campaign_list_id=100&embedable_id=200' defer></script>

  1. Get the ID of the form: Copy the text inside the quotations of id=' '. In the example, the ID is sprout-studio-email-campaign-script-100
  2. Paste the ID into the Wix embed code template below in-between the quotations in id=""
  3. Get the SRC of the form: Copy the text inside the quotations of src=' '. In the example, that would be https://sproutstudio.com/sprout_email_campaign_embed.php?email_campaign_list_id=100&embedable_id=200
  4. Paste the SRC into the Wix embed code template below in-between the quotations in src=""

Wix embed code template (edit me)

<div id="" allow-same-origin allow-forms allow-popups allow-scripts>
<script type="text/javascript" src=""></script>
</div>

Completed example code (example only)

<div id="sprout-studio-email-campaign-script-100" allow-same-origin allow-forms allow-popups allow-scripts>
<script type="text/javascript" src="https://sproutstudio.com/sprout_email_campaign_embed.php?email_campaign_list_id=100&embedable_id=200"></script>
</div>

Step 3: On your Wix website

Add a new 'Custom Embed' > 'HTML iframe element' to your page

Step 4:

Click 'Edit Code'

Step 5:

Under 'HTML Settings', choose 'Code' option, and paste your new Wix embed code (from step 2). Click 'Update'.

This should resolve the issue. Feel free to resize and move the Embed Element in Wix.com to suit your design and form.

Did this answer your question?