WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Customize Conform Form text after sending email. (6 posts)

  1. wpforum
    Member
    Posted 11 months ago #

    Do you know if I can customize that so it's says thank you, and then you have text that thank the person for contacting you and maybe sends them somewhere relevant or interesting (some people do funny things like link to funny videos too, which I think is a good marketing move). Here's an article on that you may find interesting: http://www.searchenginepeople.com/blog/optimizing-post-conversion-maximimizing-thank-you-page.html

    https://wordpress.org/plugins/jetpack/

  2. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hi,

    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:

    https://gist.github.com/kraftbj/1606dd1b230526082776

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

    Cheers!

  3. wpforum
    Member
    Posted 11 months ago #

    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;
    }
  4. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    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

    Cheers!

  5. wpforum
    Member
    Posted 10 months ago #

    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.

  6. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

    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.

Reply

You must log in to post.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic