Charitable Documentation

Learn how to make the most of Charitable with clear, step-by-step instructions.

Campaign Countdown

The Campaign Countdown displays a live-updating timer that counts down to a campaign’s end date, giving donors a clear, urgent visual cue to act before the deadline. Available in Charitable Pro 1.8.14+.

Key Features

  • Counts down in days, hours, minutes, and seconds, with per-unit visibility.
  • Pick a Boxed (bordered tiles) or Inline (compact one-line) style.
  • Choose what happens when a campaign ends: show a message, freeze the timer at zero, or hide it.
  • Trigger an optional confetti or fireworks celebration the moment the timer hits zero.
  • Add a clickable headline that links to the campaign or its donation form.
  • Style numbers, labels, background, and border with the same Coloris picker used elsewhere in Charitable Pro.
  • Toggle a built-in digital seven-segment font for a classic countdown look.
  • Show or hide an “Ends on [date]” line above or below the timer.
  • Available as a Campaign Builder field, a Gutenberg block, and a shortcode.
  • Honors the visitor’s reduced-motion preference for the celebration animation.

Why Use Campaign Countdown?

Urgency converts. A visible deadline tells donors exactly how much time they have left to support a campaign, which is one of the most reliable ways to lift end-of-campaign giving. Building the countdown directly into Charitable means it stays in sync with the campaign’s end date automatically, so you never have to update a separate widget.

See It In Action

Requirements

  • Charitable Pro 1.8.14 or later
  • The campaign must have an end date set (campaigns marked as endless will not render a countdown)

Getting Started

Activation

The Campaign Countdown is built into Charitable Pro 1.8.14+. No separate addon to install. As soon as you update to a supported version, the field, block, and shortcode are available.

Where to Find It

  • Campaign Builder: open a campaign, switch to the Fields tab, and look under Pro fields for “Countdown”.
  • Gutenberg editor: search for “Campaign Countdown” in the block inserter.
  • Shortcode: drop [charitable_campaign_countdown] on any post, page, or template.

Usage

Block (Gutenberg)

Insert the Campaign Countdown block from the widgets category, then pick the campaign in the block sidebar. Every visual and behavioral option from the Campaign Builder field is exposed in the block settings panel, so you can place a styled countdown anywhere in the WordPress editor.

Campaign Builder Field

Drag the Countdown field onto the campaign canvas. All settings live in the right-hand panel: headline, link target, units, style, colors, sizing, alignment, expiry behavior, and celebration effect. The Campaign Builder live preview reflects every change as you edit.

If the campaign has no end date set, the field shows an inline warning in the builder and renders nothing on the front end until you set the end date in Settings → Campaign Duration.

Shortcode

[charitable_campaign_countdown]

When used inside a campaign loop or on a campaign page, the shortcode auto-detects the current campaign. Use the campaign_idattribute to render a countdown for a specific campaign anywhere else on your site.

[charitable_campaign_countdown campaign_id="123" style="inline" show="days,hours,minutes" headline="Last chance to give!"]

Configuration Options

Shortcode Parameters

ParameterTypeDefaultDescription
campaign_idintegercurrent post IDThe campaign to count down to.
stylestringboxedboxed for bordered tiles, inline for a single-line compact display.
showstringdays,hours,minutes,secondsComma-separated list of units to display. Any subset of the four units.
headlinestringemptyOptional headline shown above the timer.
linkstringemptycampaign links the headline to the campaign page; donation links to the donation form.
classstringemptyExtra CSS class added to the countdown wrapper.

Block / Field Display Parameters

ParameterTypeDefaultDescription
HeadlinestringemptyOptional text shown above the timer.
Headline Linkstringnonenonecampaign, or donation.
Stylestringboxedboxed or inline.
Show Unitsarrayall fourDays, hours, minutes, seconds. Each can be toggled independently.
Use Digital Display FontbooleantrueApplies a seven-segment style to the numbers.
Alignmentstringleftleftcenter, or right.

Expiry Parameters

ParameterTypeDefaultDescription
When Campaign Endsstringmessagemessage shows a custom message, zero keeps the timer at 00:00:00:00, hide removes the countdown.
Expired MessagestringCampaign EndedText shown when the behavior is message.
Hide Delay (Minutes)integer0Minutes to keep the countdown on screen after it hits zero before applying the end-state action.

Celebration Parameters

ParameterTypeDefaultDescription
Celebration Effectstringnonenoneconfetti, or fireworks. Plays once when the timer reaches zero.

End-Date Line Parameters

ParameterTypeDefaultDescription
End-Date Text Positionstringhidehideabove, or below. Controls the “Ends on [date]” line.

Style Parameters

ParameterTypeDefaultDescription
Number Colorhex#222222Color of the unit numbers.
Label Colorhex#222222Color of the unit labels.
Background Colorhexempty (transparent)Background of each unit tile. Empty equals “no fill” so the parent surface shows through.
Border Colorhex#222222Border color around each tile (boxed style only).
Border Radius (px)integer6Corner radius for tiles.
Number Font Size (px)integer32Font size for the unit numbers.
Label Font Size (px)integer11Font size for the unit labels.
CSS ClassstringemptyExtra class added to the wrapper for custom CSS hooks.

Customization

The countdown is styled with CSS custom properties so you can theme it from a single rule set:

:root {
  --ccd-number-color: #222222;
  --ccd-label-color: #222222;
  --ccd-bg-color: transparent;
  --ccd-border-color: #222222;
  --ccd-border-radius: 6px;
  --ccd-number-size: 32px;
  --ccd-label-size: 11px;
}

Template override path: charitable/shortcodes/campaign-countdown.php (copy into your theme’s charitable/ folder).

Troubleshooting

The countdown does not appear on the front end

Check that the campaign has an end date set in Settings → Campaign Duration. Endless campaigns and campaigns missing an end date render no markup at all.

The campaign ended but the timer is still on screen

Check the “When Campaign Ends” setting. With Hide Delay greater than zero, the timer stays visible for that many minutes past the end date before switching to the expired state.

Celebration animation is not firing

The celebration is suppressed for visitors who set their operating system to “reduce motion”. The animation also only plays once, at the moment the timer crosses zero, so refreshing the page after the campaign has already ended will not replay it.

Colors look invisible

A blank Background color is treated as “no fill” (transparent) on purpose, so the countdown blends into colored sections. If text is hard to read, raise the contrast on the Number or Label color, not the Background.

Developer Resources

Hooks & Filters

  • charitable_campaign_countdown_shortcode_output — filter the final rendered countdown HTML.
  • charitable_countdown_end_date_format — filter the PHP date format used for the “Ends on” line.
  • charitable_countdown_end_date_formatted — filter the formatted date string passed into the “Ends on” template.
  • charitable_countdown_end_date_label — filter the full “Ends on [date]” label.

Useful Functions

  • Charitable_Campaign_Countdown_Shortcode::display( $atts, $overrides ) — render the countdown programmatically.
  • Charitable_Countdown::defaults() — get the canonical default settings array shared across the block, field, and shortcode.

Additional Resources

Still have questions? We’re here to help!

Last Modified:

What's New In Charitable

View The Latest Updates
🔔 Subscribe to get our latest updates
📧 Subscribe to Emails

Email Subscription

Join our Newsletter

We won’t spam you. We only send an email when we think it will genuinely help you. Unsubscribe at any time!

donation form Feature New

📝 Donation Form Block: Embed a Working Donation Form Anywhere

With the new Donation Form Block for Charitable Pro, you can drop a fully working donation form directly onto any page or post in the WordPress block editor. No redirects, no page reloads, and zero friction between reading your story and making a contribution.

📝 Drop Forms Anywhere: Place a working form directly onto your homepage, inside a story-driven blog post, on a dedicated landing page, or within a campaign announcement.

🎯 Dynamic Campaign Binding: Easily choose a specific campaign from the block sidebar or set it to automatically bind to whichever campaign is currently being viewed.

📐 Full vs. Minimal Form Views: Switch between a full layout or a compact minimal view to perfectly fit sidebars, narrow columns, or wide landing pages.

🎨 Scoped No-Code Styling: Customize typography, container spacing, border radius, amount buttons, and accent colors independently for every form instance without touching a line of CSS.

Learn more here.

ambassadors New

👤 Creator Profiles: Put a Face to Every Peer-to-Peer Campaign

Ambassadors 3.3.0 now provies Creator Profiles — giving your supporters a permanent, shareable public home that turns one-time fundraisers into ongoing relationships.

👤 Public Creator Pages: Give every fundraiser an instant, clean landing page at /creator/their-name/ to showcase their custom avatar, bio, and a browsable grid of their campaigns.

📊 Proof of Impact: Boost donor trust by displaying site-wide milestones on the profile—like total funds raised and total donor counts.

💳 Interactive Hover Cards: When donors hover over a creator’s name on a campaign page, a compact card expands with their bio and social handles right at the moment of decision.

📍 Responsible Location Sharing: Allow creators to safely show local supporters where they are based using only city, state, and country details.

🛠️ Self-Serve Customization: Fundraisers can update their own profiles and link up to six social networks directly from the My Campaigns hub, saving you admin time.

Ready to empower your advocates? Update to Ambassadors 3.3.0 and turn on “Enable Public Creator Page” today!

Improvement Payments

📱 Turn Mobile Scrollers Into Donors: Meet Charitable’s Mollie Upgrade

Losing mobile supporters because they hate typing out long card numbers on their phones? Charitable’s updated Mollie integration features:

⚡ One-Tap Wallet Checkout: Enable donors to complete their gifts instantly using Apple Pay or Google Pay with a simple face scan, fingerprint, or tap.

💰 No Extra PCI Burden: Skip complex domain verification and security compliance since all wallet transactions run safely through Mollie’s hosted checkout.

🛠️ Custom Cancel Routing: Keep the experience predictable by automatically sending donors who back out to your cancellation page, or use developer filters to route them to a custom page.

Visit this page to learn more.

ambassadors improved New

Moderation and Directory Screens In Ambassadors 3.0

Ambassadors 3.0 has new features: moderation and directory screens… now easily see those who are earning donations on your peer to peer network – including campaign creators that might need to be verified – all in one place. Generate reports, email ambassadors and campaign creators directly and more.

🚀 See when campaign creators and ambassadors have updated their campaigns, what donors/donation they have brought in and more.

🎉 Manually add ambassadors and campaign creators, and approve them in one-click!

Visit this page to learn more.

New Payments

⚡ Unlock India-Based Donations: Meet Charitable’s Native Razorpay Integration

Trying to collect donations in India? Charitable’s native Razorpay integration features:

⚡ Instant UPI Integration: Accept fast, local donations directly inside your form via apps like PhonePe, Google Pay, Paytm, and BHIM without sending donors away from your site.

📲 Auto-Generated Campaign QRs: Instantly render scannable QR codes encoding a UPI deep link directly on your public campaign pages and sidebars for an effortless “scan-to-give” experience.

💰 Dual Local & Global Reach: Headline your campaigns in INR while seamlessly accepting major international currencies like USD, EUR, GBP, and CAD to maximize global support.

🔁 Seamless Recurring Giving: Fully integrates with the Charitable Recurring addon to manage automatic monthly subscriptions directly through Razorpay without extra code.

↩️ Automatic Two-Way Sync: Keep your books perfectly clean with two-way refund syncing—issue a refund inside WordPress or your Razorpay dashboard and both sides update automatically.

🔒 Webhook-Verified Security: Automatically protect your donation records using HMAC-signed webhook verification to ensure every status update represents real money cleared on the rails.

Visit this page to learn more.