• Resolved wpiseasie

    (@wpiseasie)


    Hi,

    I want to exclude our livechat widget from translation.

    I know the class=“notranslate” function but how do I apply it to the widget?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    It seems that the chat bubble is being generated with javascript, so I guess you have to add the notranslate class with javascript as well.

    This code should do the trick:

    document.getElementById('chat-bubble').parentNode.classList.add('notranslate');

    I hope you know where to put it.

    Thanks! ??

    Thread Starter wpiseasie

    (@wpiseasie)

    Thanks I added it. It does work on the initial start, but after that it still translates.

    I added in the customizer section: custom CSS/JS – oceanwp.

    Plugin Author edo888

    (@edo888)

    Hi,

    You will need to add some delays before executing that script, so that the chat bubble is ready. setInterval to start a check loop and clearInterval when it is ready can be an option for this case.

    You can consult Tawk to chat support, maybe they have a javascript event which they fire when the initialization is done, so you can use that to run the script.

    Alternatively you can use our paid version and it will be fine.

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Skip translation of livechat plugin’ is closed to new replies.