Hey @tnrogers – Thanks for your question. It looks like you want to change the label to say something other than “Offline Donations”. If so, we have a snippet for that here: https://github.com/WordImpress/Give-Snippet-Library/blob/master/gateway-customizations/customize-payment-gateway-labels.php
In the future we’ll have a “no code” solution that we’re working on but this should fix it up for you in the mean time. If you’re not sure how to add this code to your site we have an article to help with that here: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/
Please let me know if you have anymore questions! 🙂
Hi Devin, and thanks for your reply.
I installed the “My Custom Functions” plugin and the code now looks like this (screenshot) https://screencast.com/t/7aTSGifNKuq
But the forms have not changed. The website is at http://trwdtemp.info and is currently password protected. The password to view is REDW4zev.
You’ll find a modal form in the footer, and two forms within pages at http://trwdtemp.info/donate, and http://trwdtemp.info/donations-ncmhr.
I do have W3 Total Cache installed, and did purge all caches, and tried using a new incognito window, as well as a browser that I don’t normally use.
Thanks,
Tom
Hey @tnrogers – It looks like you’re missing this code to make the code actually work:
add_filter( 'give_payment_gateways', 'my_custom_gateway_labels', 10 );
Add that to the bottom of that file you sent in the screenshot and it should work fine!
Actually, there was a bit of code above which was needed. This is what made it work:
return $gateways;
}
add_filter( 'give_payment_gateways', 'my_custom_gateway_labels', 10 );
I’m all set now, thanks.
Just for the record, and for future reference for anyone with similar concerns, this is the whole thing:
function my_custom_gateway_labels( $gateways ) {
// add the following 4 lines to change the label for Offline Donations
$gateways['offline'] = array(
'admin_label' => 'Mail a Check',
'checkout_label' => __( 'Mail a Check', 'give' ),
);
return $gateways;
}
add_filter( 'give_payment_gateways', 'my_custom_gateway_labels', 10 );
-
This reply was modified 6 years, 8 months ago by tnrogers.
Good catch! I missed that as well. Glad it’s working for you now.
Thanks for your quick response.
Glad all was resolve @tnrogers
If you’re enjoying Give and appreciate our support, we’d love a kind review from you here:
https://wordpress.org/support/plugin/give/reviews/
Thank you!