Code Embed element and head code

Add a donation form to Webflow

In Webflow, drop a Code Embed element where the box should appear, and add the button script to your site’s head code so it shows on every page.

Webflow

Add the donation box

Paste the box code where the form should appear.

  1. Copy the donation box code from Installation in your GivePilot console.
  2. In the Webflow Designer, add a Code Embed element where the box should go and paste the code.
  3. Save and publish your site, then open the page once. GivePilot sees the box go live.
Donation box inside a page
<div data-givepilot="donate"></div>
<script async src="https://givepilot.dudelemon.cloud/donate/donate.js" data-site="YOUR_SITE_KEY" data-api="https://givepilot.dudelemon.cloud/api/don/v1"></script>

Your console fills in your own site key.

Add a donate button to every page

A floating Donate button that opens the full box over any page of Webflow.

  1. Copy the donate button code from Installation.
  2. Open Site settings, then Custom code, and paste it into Head code.
  3. Save and publish. The Donate button now shows on every page.
Donate button on every page
<script async src="https://givepilot.dudelemon.cloud/donate/donate.js" data-site="YOUR_SITE_KEY" data-api="https://givepilot.dudelemon.cloud/api/don/v1"></script>

Paste just before the closing head tag.

Good to know on Webflow

Check your plan includes custom code

Webflow tells you when a feature needs a paid Site plan. If it asks you to upgrade when you add the code, custom code is not part of your current plan.

Questions about GivePilot on Webflow

Will the box show in the Designer?
Code runs on your published site. Publish, then open the page to see the live box.
Can I style the box with Webflow classes?
Set the colour, style and wording in your GivePilot console. The box takes your site’s font on its own.
Do donations go through Webflow Ecommerce?
No. Donations are paid into the Stripe, PayPal or Square account you connect in GivePilot.

Start taking donations on Webflow

Set up in a few minutes, connect the payment account you already use and take your first gift before the day is out.