Skip to content
  • There are no suggestions because the search field is empty.

Embedding the donation form popup on your Wix website


Note: For our donation popup to work with Wix, you must have a premium account (any tier will do). You must also be have a custom domain connected. To set this up, refer to the Wix's official documentation

Find your donation form code snippets

To embed your donation form in your site, you will need to access some code snippets which are available in your Causes Portal account.

  1. Sign in to your Causes Portal with your Goodstack account.
  2. Click the Donation form tab.
  3. You will see your code snippets.

Add a donate button on Wordpress

  1. Log in to your Wix account.

    1. If you have multiple websites, you will need to navigate to the website you would like to edit
  2. Under Site & App in the left hand menu, select Website and click Edit Site

  3. Select Add Elements , Embed Code and then Popular Embeds

    1. Select Custom element
  4. You should now see a custom element box on your page. Select Choose Source

    1. Paste https://scripts.goodstack.io/donation-widget-v1.js into the Server URL box.
    2. Set the Tag name
    3. You can now close the modal as your data is saved automatically
  5. Select Set Attributes , and then Set Attributes again

    1. Set the Attributes name as id
    2. Set Value as pbp-donation-widget
  6. Select New Attribute to add a second attribute

    1. Set the Attribute name as data-link-id
    2. Set the Value as your data-link-id from your Causes Portal account
  7. Select New Attribute to add a third attribute

    1. Set the Attribute name as data-organisation-id
    2. Set the Value as your data-organisation-id from your Causes Portal account
  8. Close the modals and the element should now show as a donate button

  9. Click Save and then Publish now.


Tip: When you preview your website using Wix, it doesn’t load the modal properly, but it’s just how Wix's website builder works. When you load your website directly you should see everything work as expected.