• Below you see two codes to enter widget into page one is default and in German and one is English and with “/1drft1d1n” after the ID.

    In settings I tried to add /1drft1d1n after the ID but then no chat is shown at all.

    The default Tawk.to chat plugin offers two dropdowns one to select properties and one to select widgets.

    If you make the link working with /1drft1d1n it would be enough.

    
    <!--Start of Tawk.to Script-->
    <script type="text/javascript">
    var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
    (function(){
    var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
    s1.async=true;
    s1.src='<strong>https://embed.tawk.to/1234567890/default</strong>';
    s1.charset='UTF-8';
    s1.setAttribute('crossorigin','*');
    s0.parentNode.insertBefore(s1,s0);
    })();
    </script>
    <!--End of Tawk.to Script-->
    
    <!--Start of Tawk.to Script-->
    <script type="text/javascript">
    var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
    (function(){
    var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
    s1.async=true;
    s1.src='<strong>https://embed.tawk.to/1234567890/1drft1d1n</strong>';
    s1.charset='UTF-8';
    s1.setAttribute('crossorigin','*');
    s0.parentNode.insertBefore(s1,s0);
    })();
    </script>
    <!--End of Tawk.to Script-->
    
    • This topic was modified 3 years, 9 months ago by Yui.
    • This topic was modified 3 years, 9 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kreativo Pro

    (@kreativopro)

    Hi @tobias_conrad Do you want to use both widgets at the same time? Or you only want to use “/1drft1d1n” widget in your website?

    If you want to use only “/1drft1d1n” widget, then here’s the fix:

    1. Open this file “wp-content -> plugins -> kp-fastest-tawk-to-chat -> includes -> kpfttc-frontend.php”

    2. You’ll see this link in code:
    $kpfttc_chat_link = 'https://embed.tawk.to/'.get_option('kpfttc_chat_link').'/default';

    3. Change this line to:
    $kpfttc_chat_link = 'https://embed.tawk.to/'.get_option('kpfttc_chat_link');

    4. And use chat ID that you have in plugin settings:
    1234567890/1drft1d1n

    5. It’ll work just fine.

    In next version of the plugin, we’ll fix this issue and add more features.

    Thanks,
    Kreativo Pro Team

    You can have a simple check to support both use cases.

    $user_chat_id = get_option('kpfttc_chat_link');
    
    if( strpos( $user_chat_id, "/" )===false ){
    		$user_chat_id .="/default";		
    }
    $kpfttc_chat_link = 'https://embed.tawk.to/'.$user_chat_id;
    Plugin Author Kreativo Pro

    (@kreativopro)

    @ablears Thanks for the code. We’ll test and implement it. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use different widgets from the same property’ is closed to new replies.