Support » Plugin: Add-on Contact Form 7 - MailPoet 3 » Add-on Contact Form 7 – Mailpoet 3 change text

  • alex951

    (@alex951)


    Hi there,
    I installed the “Add-on Contact Form 7 – Mailpoet 3” plugin. I would like to change the text next to the box for approval. The text is currently “Für Newsletter anmelden”, I would like to change it. Unfortunately there is no option for this. How can I change this text?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Kamrul@Tikweb

    (@abdultikweb)

    Hello,

    Currently there is no option to change this from our plugin. Howerver you can change this text easily by using the below code:

    function change_sub_text( $sub_text ) {
    	if ( $sub_text == 'Sign up for the newsletter' ) {
    		$sub_text = 'My custom text';
    	}
    	return $sub_text;
    }
    add_filter( 'gettext', 'change_sub_text', 20 );

    Please add this code to your child theme’s functions.php

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Add-on Contact Form 7 – Mailpoet 3 change text’ is closed to new replies.