• hannahspelman94

    (@hannahspelman94)


    My client has used Contact Form 7 to implements contact forms on their site (obviously), but the issue I am having is that they have redirected all of their forms to one thank you page and I cannot see how they have even set up the thank you pages to begin with.

    When I edit each individual form there is no option to select the thank you page for it to be redirected to.

    Could it possibly be hardcoded?

    I am their SEO manager so I am trying to determine if it’s something I can sort or if I will need to pass it onto a developer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jainil Nagar

    (@jainilnagar)

    Hello @hannahspelman94

    Please provide the Site URL.

    Kramarz

    (@kramarz)

    You can use a plugin like “Redirection for Contact Form 7” or add a function to your child theme functions.php. Similar to this one:

    function redirect_thank_mk(){ ?>
    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = 'https://www.your-website.com/thank-you/';
    }, false );
    </script>
    <?php }
    add_action('wp_footer', 'redirect_thank_mk');
    • This reply was modified 4 years ago by Kramarz.
    • This reply was modified 4 years ago by Kramarz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I redirect a form to a thank you page?’ is closed to new replies.