• Resolved harmonyvanlue

    (@harmonyvanlue)


    I tried using the code I saw in another post but I can’t get it to work. I want to change the generic opt in text to “Check here to sign up for our newsletter” but can’t figure out how. Please advise. Thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    To confirm, it’s this original text that you’re wanting to change?

    “Sign me up to receive marketing emails” ?

    Thread Starter harmonyvanlue

    (@harmonyvanlue)

    Yes correct

    Plugin Author Constant Contact

    (@constantcontact)

    Are you comfortable with copy/pasting a touch of code and hopefully have a child theme or at custom theme that you could safely edit? Alternatively I can provide this code as a very quick plugin that you could install as well.

    I believe this code should work to make that change in text for you.

    function harmonyvanlue_newsletter_override( $args, $key, $value ) {
    	if ( 'customer_newsletter_opt_in' !== $key ) {
    		return $args;
    	}
    
    	$args['label'] = 'Check here to sign up for our newsletter';
    
    	return $args;
    }
    add_filter( 'woocommerce_form_field_args', 'harmonyvanlue_newsletter_override', 10, 3 );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change opt-in Wording’ is closed to new replies.