Add a donation button to your Wix site in two lines

Add a Wix donation button or inline giving form with two lines of code. No Wix app, no Velo. Exact Editor and Studio click-path, plan limits, and Stripe checkout.

yourwebsite.org/give

Your campaign

Community fund

67% funded

Choose an amount

$25$50$100
Continue securely

Web, kiosk, and QR gifts land in one dashboard.

Last updated July 2026 by Akif

Quick answer

To add a donation button to Wix, add an HTML embed element and paste Givebear's two lines: a script tag and a tag marking where the button or inline form should appear. No Wix app or Velo code is needed. If custom code is not available on your plan, point a regular Wix button at your hosted Givebear donation page.

Key takeaways

  • The embed works in Wix Studio and the classic Wix Editor; the page covers both click paths.
  • An inline form keeps donors on your page, while a button opens the form when clicked.
  • Payments run through Stripe and settle into your organization's own account.

Who this is for

  • Nonprofits running their main site on the classic Wix Editor
  • Teams that rebuilt on Wix Studio and want a giving block in a section
  • Churches and mosques collecting recurring and one-time gifts online
  • Wix admins who do not want to touch Velo or hire a developer

How do you add the donation button in the classic Wix Editor?

Givebear transactions: each gift with its donor, fund, amount and source, kiosk or web

Open your site in the classic Wix Editor and click Add Elements (the plus icon on the left rail). Choose Embed & Social, then Embed Code, then Embed HTML. Wix drops an empty box onto the page with an Enter Code button.

Click Enter Code, paste the data-givebear-embed div and the async script tag, then click Update. Resize the box so it is wide enough for the form and tall enough that nothing is cut off, position it where you want the donate button, and click Publish. The form mounts after the page loads.

Wix wraps every custom embed in a sandboxed iframe, so the trick to a clean Wix donation button is picking the right variant and giving it room to render. With Givebear there is no Wix app to install and no Velo code to write: you paste exactly two lines into an Embed HTML element and the form mounts after the page loads, inheriting your site fonts so it looks native to your theme.

Here is the whole snippet. Drop <div data-givebear-embed data-organization-id="YOUR_ORG_ID"></div> followed by <script src="https://givebear.io/sdk/givebear.js" async></script> into a Wix Embed HTML box, draw the box tall enough, and publish. Swap data-givebear-embed for data-givebear-button to get a modal launcher, or data-givebear-card for a suggested-amounts card. Optional data-fund-id, data-campaign-id, data-accent-color, and data-button-text attributes let you tune each placement without editing code anywhere else.

Because Wix sandboxes every HTML element at a fixed size, the inline form behaves more predictably on Wix than a popup button. Below are the click paths for the classic Editor and for Wix Studio, and what to do when your plan blocks custom code.

Wix Studio vs the classic Wix Editor

If you rebuilt on Wix Studio, the path is the Add panel, then Embed, then the HTML iFrame or Embed Code element. Open its code panel, paste the same two lines, and place the element inside a responsive section with a sensible minimum height so it reflows on mobile.

The snippet is identical across both products, so you do not maintain two versions. Studio gives you better control over breakpoints and section height, which matters because Wix never makes the embed iframe itself responsive: you set the room it gets.

Why does the inline embed beat a modal button on Wix?

Wix renders every custom embed inside a sandboxed, fixed-size iframe that cannot reach the rest of your page. A modal button (data-givebear-button) still works, but the popup is painted inside that iframe box, so a short box clips the modal or forces an internal scrollbar.

Use data-givebear-embed (or data-givebear-card for suggested amounts) and draw the box tall. The inline form renders at a predictable height entirely inside the iframe, so donors see the whole flow with no clipping. For in-person giving, pair the page with a lobby donation kiosk.

When custom code is blocked: the hosted fallback

Some Wix setups restrict custom scripts: sites still on a free plan without a connected domain, certain Wix ADI builds, and locked-down templates. In those cases the Embed HTML element may not load the script for live visitors.

When that happens, skip the embed and link your Wix donate button or menu item directly to a hosted Givebear giving page. Donors get the same Stripe checkout and the same fund routing, with no custom code on the Wix side. Givebear charges a flat platform fee from 1.9% to 5.9% depending on plan (one rate online, at kiosks, and on memberships), plus Stripe card processing at cost, with no setup fee and no monthly minimum.

Practical use cases

  • A donate button in your Wix header that opens a giving modal
  • An always-visible donation form embedded on a campaign landing page
  • A suggested-amounts card on a building-fund or zakat appeal page
  • Fund-specific giving blocks placed across several Wix pages

Key features

  • Two-line embed with no Wix app, marketplace plugin, or Velo code required
  • Inline form inherits your Wix and Wix Studio site fonts automatically
  • Cards plus Apple Pay and Google Pay handled through Stripe checkout
  • Three variants: full inline form, modal button, or suggested-amounts card
  • Route gifts with data-fund-id and data-campaign-id on each placement
  • Hosted giving page fallback for Wix plans that block custom scripts
A volunteer treasurer reviews the giving dashboard on a laptop

Common questions

How do I add a donation form to Wix?
In the classic Wix Editor, click Add Elements, then Embed & Social, then Embed Code, then Embed HTML. Click Enter Code in the box Wix drops on the page, paste the two Givebear lines (the data-givebear-embed div and the async script tag), click Update, then drag the box to the width and height you want and Publish. In Wix Studio, use the Add panel, choose Embed, add the HTML iFrame or Embed Code element, open its code panel, and paste the same two lines. No Wix app or Velo code is needed.
Do I need a premium Wix plan or a connected domain to publish the donation button?
Custom code runs in preview on any plan, but to publish a live Wix site (and for embeds to load reliably for visitors) Wix requires a published site, and for the Settings level Custom Code feature a connected domain on a premium plan. The Embed HTML element itself ships with your published site. If your plan or a Wix ADI build blocks custom scripts, use the hosted Givebear giving page and link your Wix donate button straight to it instead of embedding.
Does the embed work in Wix Studio as well as the classic Editor?
Yes. Wix Studio exposes the same capability through its Add panel under Embed, where you add an HTML iFrame or Embed Code element and paste the two lines into the code panel. Studio sections are responsive, so place the embed inside a section and set a comfortable minimum height. The form inherits your Studio site fonts the same way it does in the classic Editor.
Do I need Velo or any developer to set this up?
No. Velo is Wix's developer platform, and the Givebear donation button does not touch it. The two-line snippet goes into a standard Embed HTML element through the normal Add menu, so a non-technical web admin can ship it without writing JavaScript or hiring a developer.

See it with your own funds.

Book a 30-minute walkthrough. No slides and no hard sell: we set Givebear up around how your organization already gives.

  • Your funds, set up the way your treasurer reports them
  • Where a kiosk would go, and what it costs
  • The reports your board will actually see

Rather set it up yourself? Start free

Loading available times

Or open the booking page