WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Change Confirmation Message in Contact Form (4 posts)

  1. amgenna
    Member
    Posted 2 years ago #

    how do i change the confirmation message when this form is submitted? Right now, it just says "Message Sent" and i need something more personal. Thanks.

    (sorry posted this a few times before realizing how to tag it for this plugin. since you cant delete posts for some reason, i just marked the others as resolved.)

    http://wordpress.org/extend/plugins/jetpack/

  2. Beau Lebens
    Member
    Plugin Author

    Posted 2 years ago #

    You can filter the success message using the 'grunion_contact_form_success_message' filter.

    As an (untested) example, try putting something like this in your theme's functions.php file:

    function amgenna_change_grunion_success_message( $msg ) {
    global $contact_form_message;
    return '<h3>' . 'My custom success message' . '</h3>' . wp_kses($contact_form_message, array('br' => array(), 'blockquote' => array()));;
    }
    add_filter( 'grunion_contact_form_success_message', 'amgenna_change_grunion_success_message' );

    That should roughly reproduce the way the message is shown now, but with "My custom success message" shown instead of "Message sent".

  3. amgenna
    Member
    Posted 2 years ago #

    thank you! i'll give it a try. otherwise, i suppose i could try any of the other 100 contact form plugins. =)

  4. DLpres
    Member
    Posted 1 year ago #

    This works great. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic