• Resolved cpedesign

    (@cpedesign)


    Is it possible to edit the content of the “By submitting this form, you are consenting to receive marketing emails from…” affirmation text below the form?

    My client STRONGLY objects to the phrase “marketing emails” and would rather it say “…consenting to receive emails..”

    I understand that the affirmation text can’t be hidden or removed, but I’m hoping it’s possible to tweak the content of the text.

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

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

    (@constantcontact)

    Are you or someone else on your team comfortable with some PHP and WordPress code development? We have some options at the code level that would help out here.

    Thread Starter cpedesign

    (@cpedesign)

    I’m the entire team in this case. Comfortable is too strong a word, but I’ve edited a little PHP in the past, with a lot of coaching. I do know how to work with a child theme – I usually stick to editing the CSS.

    Plugin Author Constant Contact

    (@constantcontact)

    Give this a trial run in your child theme’s functions.php file, if you have one. If you don’t, should be able to create one easily enough.

    function ctctsupport_amend_disclose_message( $message ) {
    	return str_replace( 'marketing emails', 'emails', $message );
    }
    add_filter( 'constant_contact_disclose', 'ctctsupport_amend_disclose_message' );
    

    It should amend ...consenting to receive marketing emails... to read as ...consenting to receive emails...

    Thread Starter cpedesign

    (@cpedesign)

    Thank you! I’ll try it.

    Thread Starter cpedesign

    (@cpedesign)

    It worked! Thank you.

    Plugin Author Constant Contact

    (@constantcontact)

    Welcome ??

    dnlcrd

    (@stardeslebens)

    Is it possible to replace the whole text? I want to translate it and alter it.
    I am not getting it to work with your suggestion above. I do think it’s because of some placeholders in the original code?

    Do you have some php-snipped for child’s functions.php to completely replace the text with something I choose including links?

    (Suggestion for further plugin-updates: Allow to set the text in wordpress backend.)

    Plugin Author Constant Contact

    (@constantcontact)

    @stardeslebens With that filter, you should be able to return whatever you want, including just returning “Yolo!” if you really wanted. It doesn’t need to be run through str_replace or similar.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘editing affirmation text’ is closed to new replies.