Hello omghacker,
To change text on the green filed, you can use gettext filter
<?php
/**
* Change text strings
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Text you want to change' :
$translated_text = __( 'Your new text', 'membership2' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
Also we have a new template system that will allow you to modify that page. New template system:
1. Create the folder “membership2” in your theme.
2. These templates are recognized – default template is in membership/app/views/templates folder:
– membership_frontend_payment.php (Payment form)
– membership_account.php (Account page)
– membership_box_html.php (List of Memberships)
– membership_registration_form.php (Registration Page)
kind regards,
Kasia
Thank you very much Kasia
I was able to change Join Membership to join Subscription by editing .php pages but sadly was not able to change others. See image below
View post on imgur.com
Hello omghacker,
Can you try using filter I proposed here https://wordpress.org/support/topic/problem-with-text-on-register-pages?replies=3#post-8663121 – you can put there more than one
case 'Text you want to change' :
$translated_text = __( 'Your new text', 'membership2' );
break;
case statement to multiple changes. This code should go to your theme functions.php
kind regards,
Kasia
This worked for me
add_filter(‘gettext’, ‘translate_text’);
add_filter(‘ngettext’, ‘translate_text’);
function translate_text($translated) {
$translated = str_ireplace(‘Choose an option’, ‘Select’, $translated);
$translated = str_ireplace(‘Original Text’, ‘Your Replacment Text’, $translated);
return $translated;
}
Hello omghacker,
Thanks for sharing your solution here!
kind regards,
Kasia