@jai6358 Thanks for reaching out.
There isn’t a setting for this in Charitable right now, and I’d steer you away from removing the Donation Amount section outright. Here’s why: the popup’s amount inputs are what actually carry the amount into the submission. When you pick an amount on the campaign page, Charitable’s frontend JS ticks the matching option inside the popup’s form, and the amount is read from that on submit. If the section is removed from the form, nothing gets submitted and the donor hits a validation error.
Should be able to hide it visually and keep everything working. Add these two snippets (a code snippets plugin or your child theme is fine):
PHP:
add_filter( 'charitable_donation_form_fields', function( $fields ) {
if ( isset( $fields['donation_fields'] ) ) {
$fields['donation_fields']['class'] = 'charitable-amount-hidden';
}
return $fields;
} );
CSS
.charitable-modal-donation .charitable-amount-hidden {
display: none;
}
The popup should open straight on First Name / Last Name / Email, with the amount the donor chose on the campaign page carried through invisibly. The CSS is scoped to the popup, so if a donor ever reaches the standalone donation page they’ll still be able to choose an amount there.
Two things to check on your campaigns after adding this: Make sure each campaign has a default suggested amount selected in the campaign builder. If a donor reaches the popup without picking an amount first (a donate link elsewhere on the site, for example), the default is what gets used… but with no default set, there’d be nothing selected and they’d get an error…. and if you use the minimum donation amount setting, note that the minimum notice should live in the section you’re hiding, so make sure every amount option on the campaign page is at or above that minimum.
I’ve passed the underlying request along to our team as a feature suggestion.
Hope this helps. Let me know if you have any questions.
We are going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!