• Resolved mad4uash1

    (@mad4uash1)


    Hi,

    In the payment key page, there is written “? Return to All Donations” in red color fonts which href to donation-history page. How to change its text like “? Return to your fundraising donation page” ?

    • This topic was modified 8 years, 2 months ago by mad4uash1.
Viewing 1 replies (of 1 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hey @mad4uash1 – To translate that text you need implement the following code snippet:

    /**
     * Translate "Return to All Donations" text
     *
     * @param $translations
     * @param $text
     * @param $domain
     *
     * @return string
     */
    function my_232321_return_to_all_donations_text( $translations, $text, $domain ) {
    
    	// Changes "Name" tooltip
    	if ( $domain == 'give' && $text == 'Return to All Donations' ) {
    		return 'Return to your fundraising donation page';
    	}
    
    	return $translations;
    }
    
    add_filter( 'gettext', 'my_232321_return_to_all_donations_text', 10, 3 );

    This will change the text to be what you specified. If you’re not sure how to add this to your site please check out: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    Please let me know if you have anymore questions! Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change html text on payment key page?’ is closed to new replies.