• 04-12-2017, 00:26:19
    #1
    merhabalar contact form 7 de gonderme butonuna bastıktan sonra bir sayfaya yönlendirme nasıl yapabilirim ? yardımcı olursanızz sevinirim
  • 04-12-2017, 00:56:50
    #2
    function add_this_script_footer(){ ?>
     
    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = 'http://www.google.com';
    }, false );
    </script>
     
    <?php } 
     
    add_action('wp_footer', 'add_this_script_footer');
    @metank;

    temanın functions.php'sine eklersen, gönder butonundan sonra google'a yönlendirecektir.
    kendine göre düzenleyebilirsin.

    şu şekilde de yapabilirsin:



    on_sent_ok: "location = '/deneme';"
  • 04-12-2017, 11:10:51
    #3
    netkoLiX adlı üyeden alıntı: mesajı görüntüle
    function add_this_script_footer(){ ?>
     
    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = 'http://www.google.com';
    }, false );
    </script>
     
    <?php }
     
    add_action('wp_footer', 'add_this_script_footer');
    @metank;

    temanın functions.php'sine eklersen, gönder butonundan sonra google'a yönlendirecektir.
    kendine göre düzenleyebilirsin.

    şu şekilde de yapabilirsin:



    on_sent_ok: "location = '/deneme';"
    Eyvallah hocam çok sağolasın