दान संबंधी दस्तावेज़ीकरण

स्पष्ट, चरण-दर-चरण निर्देशों के साथ दान संबंधी का अधिकतम लाभ उठाना सीखें।

Campaign Modal Donate Button

The Modal Donate Button (also referred to as Campaign Modal Button) lets you place a button that opens a donation form in a modal popup-or links directly to the campaign donation page-anywhere on your site. It is available as both a WordPress block and a shortcode, and is part of Charitable’s Universal Modal Donation System.

सामग्री तालिका

Requirements

  • Charitable Pro: Version 1.8.13 or higher
  • WordPress: Version 6.2 or higher
  • PHP: Version 7.4 or higher

शुरुआत करना

Block: Edit a page or post in the Block Editor → add block → search for Modal Donate Button or Charitable → insert the block → choose a campaign and configure the button in the sidebar.

Shortcode: Use [charitable_modal_button campaign_id="123"] in any post, page, or widget. Replace 123 with your campaign ID. You can add optional attributes for button text and CSS classes (see Shortcode).

Key Benefits

  • Place anywhere: Buttons in sidebars, footers, campaign grids (e.g. Campaign Showcase), or inline content.
  • Modal or link: Block lets you choose “Modal Popup” (donation form in a popup) or “Link to Donation Page” (normal link). Shortcode is modal-only.
  • No page reload: In modal mode, the form loads via AJAX and opens in an overlay; donors stay on the same page until they submit or close.
  • Campaign Selector control: When Campaign Selector is enabled globally, you can hide it for a specific button so the modal shows only the chosen campaign.

Block (Editor)

The block is registered as Modal Donate Button (charitable/modal-donate-button) under the Widgets category.

Block settings (sidebar)

सेटिंग्स

  • Campaign – Required. Select the campaign this button will use for donations.
  • Button Text – Label on the button (default: “Donate Now”).
  • Button Action
    • Modal Popup – Click opens the donation form in a modal (default).
    • Link to Donation Page – Click goes to the campaign’s donation page.
  • Open in New Tab – Only when Button Action is “Link to Donation Page.” Opens the donation page in a new tab.
  • Hide Campaign Selector – Only when Button Action is “Modal Popup.” When enabled, the campaign selector dropdown is hidden in this modal even if it’s enabled in Charitable settings.

Colors

  • Background – Button background color.
  • Text – Button text color.
  • Border – Button border color.

Hover

  • Background – Button background on hover.
  • Text – Button text color on hover.

Size & Spacing

  • Button Width – e.g. auto100%200px.
  • Font Size – e.g. 16px1.2em.
  • Border Radius – e.g. 4px25px.
  • Horizontal Padding – e.g. 24px2em.
  • Vertical Padding – e.g. 12px1em.

Advanced

  • Custom CSS Class – Extra class(es) on the button element.
  • Modal CSS Class – Only when Button Action is “Modal Popup.” Extra class(es) on the modal container (default modal class is charitable-universal-modal).

The editor shows a preview of the button and the selected campaign name. On the frontend, the block outputs the same behavior as the shortcode (in modal mode) or a styled link (in link mode).

Shortcode

Shortcode name: charitable_modal_button

Required attribute

  • campaign_id – The campaign ID. The button will open the donation form for this campaign in a modal.

Optional attributes

AttributeDescriptionडिफ़ॉल्ट
textButton label.“Donate Now”
classAdditional CSS class(es) for the button.
modal_classAdditional CSS class(es) for the modal container.

Examples

[charitable_modal_button campaign_id="42"]
[charitable_modal_button campaign_id="42" text="Give to this campaign"]
[charitable_modal_button campaign_id="42" class="my-donate-btn" modal_class="my-modal"]

Note: The shortcode always opens the donation form in a modal. To link to the donation page instead, use the block with Button Action set to “Link to Donation Page,” or use the standard donate link/shortcode (e.g. [charitable_donate_button] with the appropriate campaign and link behavior).

How the Modal Works

  1. Trigger: The button has the class charitable-modal-trigger and a data-campaign-id attribute. The Universal Modal script listens for clicks on this class.
  2. Load: On click, the script loads the donation form via AJAX for the given campaign and injects it into the modal overlay.
  3. Display: The modal opens (using the same overlay and structure as Charitable’s existing modals). Donors can complete the form or close the modal.
  4. Campaign Selector: If the Campaign Selector feature is enabled in Charitable settings and not overridden by the button (see below), the form can show a dropdown to switch campaigns. Individual buttons can force-hide it with the block’s “Hide Campaign Selector” option or by passing data-hide-campaign-selector when building the button in code.

The modal uses the Universal Modal Donation System (Charitable Pro 1.8.13+), so it works consistently whether the button is from the block, the shortcode, or from other features (e.g. quick-donate buttons in the Campaign Showcase block).

Campaign Selector in the Modal

  • Global setting: Charitable Settings → General → Donation Form → Campaign Selector. When enabled, donation forms can show a “Choose a Campaign” dropdown.
  • Per-button override (block only): In the Modal Donate Button block, when Button Action is “Modal Popup,” enable Hide Campaign Selector to hide that dropdown for this button’s modal. Useful when the button is for a single campaign and you don’t want the selector in the popup.
  • Shortcode: The shortcode does not expose a “hide campaign selector” attribute. To hide it for a shortcode button, you would need to add a custom CSS class and use JavaScript to set data-hide-campaign-selector on the trigger, or use the filter charitable_modal_donate_button_html to add the data attribute.

Troubleshooting

Button does nothing when clicked

  • Confirm the campaign ID is valid and the campaign is published.
  • Ensure the Universal Modal script is loaded (no script errors or aggressive removal of Charitable scripts on that page).
  • Check the browser console for JavaScript errors when clicking the button.

Modal doesn’t open or form doesn’t load

  • Verify you’re on Charitable Pro 1.8.13+ and that no plugin/theme is blocking charitable-universal-modal or the AJAX request that loads the form.
  • Test with a default theme and other plugins disabled to rule out conflicts.
  • Ensure the campaign can receive donations (e.g. not ended, not fully funded if that blocks donations).

Button looks wrong or styling is missing

  • Use the block’s ColorsSize & Spacing, and Advanced (custom class) options to adjust appearance.
  • For the shortcode, add a class and style that class in your theme or custom CSS. The trigger uses the class charitable-modal-trigger plus any classes you pass.

“Link to Donation Page” not available

  • That option exists only on the block. The shortcode [charitable_modal_button] is modal-only. For a simple link to the donation page, use the block with Button Action = “Link to Donation Page” or your theme’s/plugin’s donate link for that campaign.

Developer Resources

PHP

  • Template function: charitable_get_modal_donate_button( $campaign_id, $args ) – Returns the button HTML. Used by the shortcode and block.
  • Echo helper: charitable_modal_donate_button( $campaign_id, $args ) – Echoes the same HTML.

Arguments for charitable_get_modal_donate_button:

कुंजीप्रकारडिफ़ॉल्टDescription
textस्ट्रिंग“Donate Now”Button label.
classस्ट्रिंगcharitable-modal-triggerCSS class(es) for the button.
modal_classस्ट्रिंगcharitable-universal-modalCSS class for the modal container.
button_tagस्ट्रिंगबटनbutton or a.
styleस्ट्रिंग''Inline style string for the button.
hide_campaign_selectorबूलfalseWhen true, adds data-hide-campaign-selector="1"so the modal hides the campaign selector.

फ़िल्टर

  • charitablemodaldonatebuttonshortcode_output – Filter the shortcode output. Parameters: $output$args.
  • charitablemodaldonatebuttonhtml – Filter the button HTML from charitable_get_modal_donate_button. Parameters: $button_html$campaign_id$args.

CSS / HTML

  • Button: The trigger has class charitable-modal-trigger and attributes data-campaign-id, optionally data-modal-classdata-hide-campaign-selector.
  • Block wrapper: .wp-block-charitable-modal-donate-button.
  • Modal: The overlay and modal container are created by the Universal Modal script; the modal uses the class you pass (e.g. charitable-universal-modal).

Version history

VersionChanges
1.8.13Modal Donate Button block and shortcode; Universal Modal Donation System; block supports Modal Popup vs Link, styling, Hide Campaign Selector; charitable_get_modal_donate_button gains style and hide_campaign_selector.

For global donation form and Campaign Selector settings, see Campaign Selector. For embedding full donation forms (not in a modal), see the donation form and campaign shortcode documentation.

अभी भी प्रश्न हैं? हम मदद के लिए यहाँ हैं!

अंतिम बार संशोधित:

चैरिटेबल में नया क्या है

नवीनतम अपडेट देखें
🔔 हमारे नवीनतम अपडेट प्राप्त करने के लिए सदस्यता लें
📧 ईमेल के लिए सदस्यता लें

ईमेल सदस्यता

हमारे न्यूज़लेटर में शामिल हों

हम आपको स्पैम नहीं भेजेंगे। हम केवल तभी ईमेल भेजते हैं जब हमें लगता है कि यह वास्तव में आपकी मदद करेगा। आप किसी भी समय सदस्यता समाप्त कर सकते हैं!

गिवडब्ल्यूपी माइग्रेशन नया

GiveWP के लिए व्हाइट ग्लोव माइग्रेशन सेवा

अपने फ़ंडरेज़िंग प्लेटफ़ॉर्म को GiveWP से Charitable पर स्विच करने के बारे में सोच रहे हैं, लेकिन अपना डेटा खोने का जोखिम नहीं उठाना चाहते या स्वयं एक जटिल तकनीकी सेटअप को संभालना नहीं चाहते? Charitable की व्हाइट ग्लोव माइग्रेशन सेवा में शामिल हैं:

👥 निर्दोष डोनर मैपिंग: शून्य डेटा हानि के साथ अपने पूरे समर्थक डेटाबेस को सुरक्षित रूप से स्थानांतरित करें।

📊 पूर्ण वित्तीय इतिहास: निरंतर, सटीक रिपोर्टिंग के लिए हर ऐतिहासिक लेनदेन को सावधानीपूर्वक संरक्षित करें।

🔄 निर्बाध आवर्ती दान: अपने आने वाले राजस्व को बाधित किए बिना या अपने दाताओं को अपनी जानकारी अपडेट करने की आवश्यकता के बिना सक्रिय स्थायी सब्सक्रिप्शन को सुरक्षित रूप से स्थानांतरित करें।

💳 शून्य गेटवे व्यवधान: स्ट्राइप, पेपाल, या किसी अन्य GiveWP-संगत प्रोसेसर का उपयोग करना जारी रखें जिसे आप पहले से ही पसंद करते हैं।

🚀 विशेषज्ञ तकनीकी सेटअप: जब हमारी टीम आपके फ़ॉर्म को इंस्टॉल और कॉन्फ़िगर करने का भारी काम संभालती है तो आराम करें—साथ ही, योग्य उपयोगकर्ताओं को Charitable Pro का पूरा साल पूरी तरह से मुफ़्त मिलता है।

अधिक जानने के लिए इस पृष्ठ पर जाएँ

ऑटोमेशन सुधार

📢 नई सुविधा अलर्ट: ऑटोमेशन कनेक्ट 2.0 यहाँ है! 🚀

अपने फ़ंडरेज़िंग डेटा को Mailchimp, Slack, या Google Sheets जैसे टूल से जोड़ने के बारे में सोच रहे हैं, लेकिन डेवलपर को काम पर नहीं रखना चाहते या कस्टम कोड नहीं लिखना चाहते? Charitable के नए ऑटोमेशन ऐडऑन में है:

⚡ 17 इवेंट ट्रिगर: डोनर के पहले उपहार, नवीनीकरण भुगतान, या अभियान मील के पत्थर तक पहुंचने के लिए तुरंत वेबहुक फायर करें।

🎯 स्मार्ट कंडीशनल लॉजिक: केवल तभी डेटा भेजने के लिए 11 फ़ील्ड में शक्तिशाली AND/OR लॉजिक का उपयोग करें जब यह आपकी सटीक शर्तों को पूरा करता हो, जैसे न्यूज़लेटर ऑप्ट-इन।

📊 कस्टम पेलोड नियंत्रण: डोनर, दान और अभियान मेटाडेटा में 80+ क्लीन डेटा फ़ील्ड में से चुनें ताकि आपके ऐप्स को वही मिले जिसकी उन्हें आवश्यकता है।

🚀 प्री-बिल्ट प्लेटफ़ॉर्म टेम्प्लेट: Zapier, Make.com, n8n, HubSpot, और Slack के लिए तैयार टेम्प्लेट के साथ स्क्रैच से सेटअप छोड़ें।

🛡️ विश्वसनीय डेवलपर टूल: हस्ताक्षरित HMAC-SHA256 पेलोड, पूर्ण वर्डप्रेस फ़िल्टर और स्वचालित पुनः प्रयास लॉग के साथ अपने वर्कफ़्लो को पावर दें।

ऑटोमेशन सुधार

🔌 चैरिटेबल ज़ैपियर से जुड़ता है: 7,000+ ऐप्स से कनेक्ट करें और अपने धन उगाहने को स्वचालित करें

दान डेटा को मैन्युअल रूप से अकाउंटिंग शीट में कॉपी करने या नए दाता साइनअप को ट्रैक करने से थक गए हैं? अपने प्रशासनिक कार्यों को ऑटोपायलट पर रखें। चैरिटेबल अब आधिकारिक तौर पर ज़ैपियर पर है, जो आपको अपने धन उगाहने को सीधे अपने पसंदीदा टूल के बाकी हिस्सों में प्लग करने का एक शक्तिशाली, नो-कोड तरीका प्रदान करता है।

हर दान, दाता साइनअप, और अभियान मील का पत्थर अब निर्बाध रूप से एक स्वचालित वर्कफ़्लो को ट्रिगर कर सकता है।

नई क्या है:

♾️ 7,000+ ऐप्स से कनेक्ट करें: अपने चैरिटेबल अभियानों को Google Sheets, QuickBooks, Slack, Mailchimp, HubSpot, Notion, Airtable, और हजारों अन्य जैसे रोजमर्रा के सॉफ़्टवेयर के साथ ब्रिज करें।

⚡ 12 शक्तिशाली ट्रिगर: संपूर्ण दान जीवनचक्र को कवर करने वाले स्मार्ट ऑटोमेशन ट्रिगर का उपयोग करके गहन वर्कफ़्लो बनाएं—जिसमें नया दान, नया दाता, सदस्यता रद्द, और अभियान लक्ष्य तक पहुंचना शामिल है।

📋 पूर्व-निर्मित एक्शन टेम्प्लेट: हमारे पूर्व-निर्मित टेम्प्लेट संयोजनों के साथ तीन मिनट या उससे कम समय में शुरुआत करें, जैसे कि Google शीट में सीधे नए दान लॉग करना या Gmail के माध्यम से कस्टम दाता स्वागत ईमेल भेजना।

🚫 किसी कोड की आवश्यकता नहीं: किसी जटिल वेबहुक या कस्टम PHP स्क्रिप्ट की आवश्यकता नहीं है। बस अपना ट्रिगर चुनें, अपना ऐप चुनें, अपने फ़ील्ड मैप करें, और ज़ैपियर को भारी काम करने दें।

एडमिन समय के घंटों को बचाने के लिए तैयार हैं? आज ही ऑटोमेशन कनेक्ट एडऑन के साथ चैरिटेबल प्रो प्राप्त करें और अपना पहला ज़ैप लॉन्च करें!

सुधार भुगतान

🚀 पेपैल कॉमर्स का परिचय: एक कनेक्शन, दान करने के छह तरीके

दानकर्ता जब किसी कारण का समर्थन करते हैं तो आधुनिक, लचीले भुगतान विकल्पों की उम्मीद करते हैं। यदि वे आपके दान फ़ॉर्म पर अपनी पसंदीदा विधि नहीं देखते हैं, तो वे अक्सर बिना कुछ कहे चले जाते हैं। पेपैल कॉमर्स के साथ, हम आपके अभियानों में एक पूरी तरह से आधुनिक चेकआउट अनुभव ला रहे हैं।

एक एकल एकीकरण का आनंद लें जो आपके फ़ॉर्म को अपग्रेड करता है, दान को निर्बाध बनाता है, और आपको हर एक दान को कैप्चर करने में मदद करता है।

नई क्या है:

🔌 एक-क्लिक कनेक्शन: गंदे एपीआई कुंजी और डेवलपर दस्तावेज़ों को छोड़ें। बस "पेपैल से कनेक्ट करें" पर क्लिक करें, अपने व्यवसाय खाते में साइन इन करें, और आपका आधुनिक फ़ॉर्म पांच मिनट से भी कम समय में लाइव हो जाएगा।

💳 देने के छह तरीके: अपने समर्थकों को पेपैल बैलेंस, वेन्मो (यूएस), पे लेटर फाइनेंसिंग, प्रमुख क्रेडिट/डेबिट कार्ड, एप्पल पे (सफारी), और गूगल पे (क्रोम) सभी एक ही फ़ॉर्म से तुरंत एक्सेस दें।

🔄 लचीला आवर्ती दान: मासिक दान का पूरी तरह से समर्थन करता है। पेपैल सब्सक्रिप्शन एपीआई (पेपैल के अंत में स्वचालित रूप से संभाला जाता है) या वॉल्ट + क्रॉन (सीधे आपकी साइट पर सुरक्षित रूप से संभाला जाता है) के बीच चयन करें।

💬 अनुकूल त्रुटि रिकवरी: कोई और भ्रमित करने वाले ब्राउज़र अलर्ट नहीं। यदि कोई भुगतान अस्वीकृत हो जाता है, तो दानकर्ताओं को सादे-भाषा, इनलाइन संदेश दिखाई देते हैं जो उन्हें समस्या को ठीक करने और अपना उपहार पूरा करने के तरीके के बारे में मार्गदर्शन करते हैं।

पेपैल के लिए तैयार हैं, आधुनिक? चैरिटेबल प्रो 1.8.15+ (या चैरिटेबल लाइट 1.8.11+) में अपडेट करें और आज ही अपना खाता कनेक्ट करें!

अभियान नया

⏳ अभियान काउंटडाउन: तात्कालिकता को बढ़ाएं और दान बढ़ाएं

तात्कालिकता धन उगाहने वाले सबसे शक्तिशाली उपकरणों में से एक है! अभियान काउंटडाउन से मिलें—एक लाइव, वास्तविक समय टाइमर जो टालमटोल को तत्काल उदारता में बदलने के लिए बनाया गया है।

अभियान_काउंटडाउन_एनीमेशन

नई क्या है:

⏱️ लाइव, रियल-टाइम तात्कालिकता: लाइव-अपडेटिंग विज़ुअल काउंटडाउन के साथ अपने अभियान की समय सीमा तक दिनों, घंटों, मिनटों और सेकंडों को खूबसूरती से ट्रैक करें।

🎨 आपके लुक के अनुरूप: बॉक्स्ड बॉर्डर्ड टाइल्स या एक साफ, सिंगल-लाइन इनलाइन डिस्प्ले के बीच चुनें। फ़ॉन्ट और डीप कलर कंट्रोल्स के साथ तुरंत अपने थीम से मिलान करें।

🛠️ कहीं भी रखें: कैंपेन बिल्डर फ़ील्ड, एक समर्पित गुटेनबर्ग ब्लॉक, या एक साधारण शॉर्टकोड का उपयोग करके कहीं भी काउंटडाउन ड्रॉप करें।

🚨 स्मार्ट समाप्ति क्रियाएं: अंतिम स्थिति पर पूर्ण नियंत्रण—टाइमर को स्वचालित रूप से एक कस्टम संदेश से बदलने, इसे शून्य पर फ्रीज करने और बहुत कुछ करने के लिए चुनें।