Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Switch “Donation Total” on form.

  • Resolved Zagaz

    (@andreranulfo)


    Greetings guys!

    First of all, this plug-in is top 5!!!!!

    I have just one question. On the forms, how fo I switch “Donation Total” for another text, such as: “Contribution Total”?

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there, thanks for your kinds words about GiveWP!

    Translating that requires a small bit of custom code. Here it is:

    function my_give_text_switcher( $translations, $text, $domain ) {
    	// changes the "Donations" text in multiple places
    	if ( $domain == 'give' && $text == 'Donation Total:' ) {
    		$translations = __( 'Contribution Total:', 'give' );
    	}
    	
    	return $translations;
    }
    add_filter( 'gettext', 'my_give_text_switcher', 10, 3 );

    If you need guidance adding custom functions like that to your WordPress website, we wrote this guide just for you:

    https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    And if you’re enjoying GiveWP and appreciate our support, we’d love a kind review from you here:
    https://wordpress.org/support/plugin/give/reviews/

    Thanks!

    Thread Starter Zagaz

    (@andreranulfo)

    IT WORKED!!!

    Thank you very kind!
    It is great plug-in. Not only because it is well written and full costumizable, bout also it helps people.

    Looking foward with my client to get the PDF Receipts Add-on.

    • This reply was modified 2 years, 9 months ago by Zagaz.
    Thread Starter Zagaz

    (@andreranulfo)

    I just posted my review! 5 STARS!

    Thank You! I just had the same requirement.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Switch “Donation Total” on form.’ is closed to new replies.