Embedding a Donately donation form into a Weebly site

How to put a Donately donation form on a Weebly site with the Embed Code element, which works on every Weebly plan, and what to know about Weebly's move to Square Online.

Integrations

Weebly's Embed Code element puts your Donately form directly into your page, so every payment method works there, including Apple Pay and Google Pay. It works on every Weebly plan, including the free one, and on every Donately plan, including Free.

The form only shows on your published site. Weebly does not run embedded code in the editor, so you will not see the form while you are editing. That is expected, not a sign that something is wrong. Publish the site to check it.

Weebly is closing in some countries. Weebly has shut down in a number of countries and recommends building new sites with Square Online. If you are starting a new site, see the Square Online section at the end of this page.

1. Copy your embed code from Donately

  1. Build your donation form and publish it. The Share button stays disabled until the form is published.
  2. Open the form and click Share.
  3. Under Embed on Your Website, choose Simple script, then click Copy Embed Code.

Simple script is the right choice for Weebly. Put your donation form on your website explains the other two options if you need them.

2. Add an Embed Code element in Weebly

  1. In the Weebly editor, open the page where the form should go. Many organizations give it its own "Donate" page.
  2. On the Build tab, drag the Embed Code element onto the page where you want the form.
  3. Click inside the element, then click Edit Custom HTML.
  4. Paste the code you copied in step 1, then click anywhere outside the element.

Paste only the code from Donately. Do not leave the element empty: an empty one publishes the words "Click to set custom HTML" on your live page.

3. Publish and check the live page

Click Publish in the top right, then open the published page. The form appears where you placed the Embed Code element.

The form can only be as wide as the area you put it in. If it is wider than you want, add a Spacer element on either side of it.

You do not need to repeat any of this when you edit the form later. Publish your changes in Donately and the embedded form picks them up within a minute or two. If it still looks old, hard-refresh the page.

If part of the form is cut off

Weebly hides anything that spills past the bottom edge of an Embed Code element. If a menu or pop-up in the form gets clipped, go to Settings → SEO, add the following to Header Code, and publish again:

<style>.wcustomhtml { overflow-y: visible !important; }</style>

Apple Pay and Google Pay

Because the Embed Code element puts the form directly into your page rather than inside a separate frame, mobile wallets work on Weebly. There is one step on the Donately side: register your site's domain under Settings → Payment Processors, or use the task Donately adds to your dashboard after your first donation from the site. Accept Apple Pay and Google Pay on your donation forms walks through it.

Register the domain donors see in their address bar, such as www.example.org, or your weebly.com address if that is where your site lives.

Styling the form

Because the form sits directly in your page, it can pick up some of your Weebly site's styles. Set the donate button and accent color with Primary color in the form builder, and use Custom CSS for anything else. Change how your donation form looks covers both.

Every form has a Hosted Form Link: a complete donation page that Donately hosts for you. Copy it from the form's Share page, then drag a Button element onto your Weebly page and set its link to that address. To put it in your menu instead, add an External Page from the Pages tab.

Apple Pay and Google Pay work on the hosted page with no setup.

Building on Square Online instead

Square Online has its own Embed code section, available on its Plus and Premium plans. In Square, go to Channels → Square Online → Website, click Edit site, open the page, click + Add, choose Section, then Embed code. Select the section, paste the Simple script code from step 1 into its panel, and publish.

On a Square Online plan without embed code, link to your hosted form instead, as described above.

Last updated

Was this article helpful?

Still stuck?

We use cookies to understand how the help centre is used, and to see which articles lead people to Donately. Nothing is set unless you agree.