DOCS

Campaign Action Button

FREE block. A call-to-action button that links to the Action Wizard with the current campaign pre-selected.

Campaign action button example

Why use this

Campaign pages need a prominent way for visitors to start their own fundraising action under that campaign. This button links directly to the wizard with the campaign context already loaded, so visitors skip the campaign selection step.

What it does

The block generates a link to the configured Wizard page, appending ?campaign={post_id} so the wizard pre-selects the current campaign. Before rendering the button, the block checks three conditions:

  • The campaign’s _get_fund_status is closed: renders a “Campaign is closed” notice instead of the button.
  • The _get_fund_children_disabled meta is set: renders a “New actions are disabled” notice.
  • The action has expired (_get_fund_expired): renders an expiry notice.

The button only renders on get_fund_action singular pages. On other page types it outputs nothing.

Default button size is Large, not medium.

How to use it

  1. Add the Campaign Action Button block to a campaign page template.
  2. Customise the button text, size, and colors in the inspector.
  3. Leave Wizard Page URL blank to auto-detect the configured wizard page. Override it only if you have a custom setup.
Campaign action button inspector

Settings and options

OptionTypeDefaultDescription
Button textstringStart Action for This CampaignButton label
Button sizestringlargesmall, medium, large, or text
Alignmentstringcenterleft, center, or right
Wizard page URLstringOverride auto-detected wizard URL
Is outlinebooleanfalseOutline style instead of filled
Border thicknessnumber2Outline border thickness
Border colorstring#4a9d44Outline border color
Outline text colorstring#4a9d44Outline button text color
Outline hover text colorstring#ffffffOutline hover text color
Full widthbooleanfalseStretch to full container width
Button colorstringFilled button background
Button text colorstringFilled button text
Button hover colorstringFilled button hover background
Text weightstring600Font weight (text style)
Underline heightnumber2Underline thickness (text style)
Text link hover colorstringHover color (text style)

What you can and cannot do

  • This block only renders on singular get_fund_action pages. It renders nothing on archive pages, the wizard page itself, or other page types.
  • When the campaign is closed, children are disabled, or the action is expired, the button is replaced with a notice. You cannot suppress that notice without code.
  • The ?campaign= URL parameter is appended automatically; you do not need to set it manually.

Troubleshooting

Button does not appear: The block may be on a page that is not a singular action, or the action’s status is closed/expired.

Clicking the button shows the wizard without the campaign pre-selected: The wizard page URL may be incorrect. Check Settings > Fundations > Pages and confirm the Wizard page is set. Alternatively, enter the URL directly in the Wizard Page URL attribute.

A notice appears instead of the button: The campaign is closed, new actions are disabled for this campaign, or the action has expired. Edit the action in the admin to change the status.