Support » Plugins and Hacks » Jetpack by WordPress.com » [Resolved] Customize Conform Form text after sending email.

[Resolved] Customize Conform Form text after sending email.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Brandon Kraft



    You can customize the “Message Sent” message through a bit of code. You can add something like this to your theme’s functions.php file or in a Core Functionality plugin:


    The redirect option isn’t available currently, but is a good suggestion.




    Thanks Brandon. The code worked from https://gist.github.com/kraftbj/1606dd1b230526082776 in the functions.php theme file.

    Is there a way I can have it in a child theme file (like style.css) so the custom code will not be lost with theme updates?

    I added a link that opens in another window to invite contacts to subscribe to email updates at http://happynick.com/marketing/contact/

    add_filter ('grunion_contact_form_success_message', "my_success_message");
    function my_success_message( $r_success_message) {
    $r_success_message = "<h3>Thank you! You will get a respond soon (if it's not spam).<br><br><span style=color:rgb(0, 0, 0)><a href=http://visitor.r20.constantcontact.com/manage/optin?v=001effcjiBvUC4n4eRcDNYaCLF4zEwdV1CqpGvq5Smzb6IyZFrBzETNJG7bYqZgulBfPnU-zi7MM1Jw1eogK0LTDb5D5FOwGmn5RgPCSuyTZn3O-XOz8JfkI8AHpfsf4Y7DhvNHPCl8T_Ts89F8OqgZd-rvZmQOEXZfeRD9eX-8TOa8b8a_WUubPyxfN6FsWSxzB3r7OFOZM_cduP4aseWFJA%3D%3D target=_blank>Click here to stay informed with Monthly Emails. Discover how I can help you develop and manage your marketing strategies.</a></span></h3>";
    return $r_success_message;

    Plugin Contributor Brandon Kraft


    Sure thing. You can either start a new functions.php in your child theme (be sure to start it with a <?php line before adding in anything else.

    Alternatively, you can use a core functionality plugin.

    The idea of this is that it is a custom plugin that you can dump everything you want into it, like functions.php, but it’ll stay with you through theme changes or updates.

    An example of one is at https://github.com/billerickson/Core-Functionality

    In Bill’s case (the author of the one above), he has a good amount of structure to his. You can make one just as simple as a “my-core-functions.php” file that you place in your /wp-content/plugins folder. As long as it starts with something like this, it’ll show in your Plugins list and you can activate/deactivate like other plugins.

    Since this is a new php file, it does need to start with the <?php in the link above. After that “header” information, you can drop in code there instead of functions.php




    Thanks Brandon! The functions.php in my child theme works. I wrote to Bill regarding the Core Functionality Plugin:

    I am interested in using the Core Functionality Plugin (https://github.com/billerickson/Core-Functionality), but I do not see a support forum at http://profiles.wordpress.org/billerickson or instructions on how to install it. If possible, I would like to use it to house the custom code add to the function.php (from the theme), jetpack-carousel.css, and jetpack-carousel.js (from Jetpack plugin).

    Could you direct me to where you have instructions on how to install and add the code to the correct place so I can use this plugin.

    Plugin Contributor Brandon Kraft


    With the Core Functionality plugin, it is simply a base for you to do what you will with it and is unsupported (I assume since the idea is you’ll dump your own code there).

    You’ll download it, edit it and then upload it to your /wp-content/plugins folder (e.g. /wp-content/plugins/my-core-functionality) then activate it via Plugins like any other plugin.

    For adding CSS or JS, you’ll need to add them within the plugin, then specifically call them within the plugin’s PHP via http://codex.wordpress.org/Function_Reference/wp_enqueue_script and http://codex.wordpress.org/Function_Reference/wp_enqueue_style.

    If wanting to remove something already present, http://codex.wordpress.org/Function_Reference/wp_dequeue_style and the corresponding script function would be used.

    You can add the code wherever you’d like. You can add it directly to the plugin.php or any of the files mentioned in that file that are being called in.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Customize Conform Form text after sending email.’ is closed to new replies.