• Resolved 000000000

    (@pealo86)


    When I submit a form, it includes #wpcf7-f339-o1 in the URL to indicate that the form has been submitted successfully.

    I would prefer to remove this, as I don’t like how the page scrolls down automatically after a couple seconds delay from the page loading.

    Is there a way to disable this at all?

Viewing 1 replies (of 1 total)
  • Thread Starter 000000000

    (@pealo86)

    Managed to fix this myself with the following (decided I wanted to change the anchor tag in the end):

    // edit cf7 unit tag / anchor
    add_filter('wpcf7_form_action_url', 'remove_unit_tag');
    function remove_unit_tag($url){
        $remove_unit_tag = explode('#',$url);
        $new_url = $remove_unit_tag[0];
        $new_url .= '#headline';
        return $new_url;
    }
    • This reply was modified 4 years, 5 months ago by 000000000.
Viewing 1 replies (of 1 total)
  • The topic ‘Disable redirects’ is closed to new replies.