DOCS

Donation Message

FREE block. Displays a donor’s message and their name and amount within a Query Loop over donation posts.

Donation message example

Why use this

Publishing donor messages on an action page adds social proof and encourages others to give. This block is designed for use inside a Query Loop that loops over get_fund_donation posts.

What it does

The block reads the _get_donation_message meta from the donation post in the loop context. It also shows the donor’s name and the donated amount. Styling for the name, amount, and message text is individually configurable.

The block supports demo mode, showing placeholder content on non-donation pages when demo mode is active.

How to use it

  1. Add a Query Loop block set to the get_fund_donation post type.
  2. Inside the loop template, add the Donation Message block.
  3. Configure which elements to show and adjust font styles in the inspector.

Settings and options

OptionTypeDefaultDescription
Show amountbooleantrueDisplay the donation amount
Show namebooleantrueDisplay the donor’s name
Text alignstringleftText alignment
Amount colorstringAmount text color
Amount font sizenumber16Amount font size in pixels
Amount font weightstring600Amount font weight
Message colorstringMessage text color
Message font sizenumber14Message font size in pixels
Message font weightstring400Message font weight
Message line heightnumber1.5Message line height
Message font stylestringitalicMessage font style

What you can and cannot do

  • This block only functions correctly inside a Query Loop iterating over get_fund_donation posts.
  • The block does not expose an output filter.
  • Donors who did not leave a message will render an empty message area.