Tawk.to is free and easy to add a live chat widget to your site. However, its branding is too aggressive and some customers may find it disturbing when initiating the chat.

Here’s the screenshot of the branding I’m talking about.

Remove tawk.to branding

Remove tawk.to branding

Since this chat widget is added via JavaScript, the display none CSS trick won’t work here.

There are a couple of ways to remove it.

  1. (RECOMMENDED) Purchasing the Remove Branding add-on, which also gives you the option to use your own domains for your chat page.

  2. (FREE) Adding a PHP Code Snippet to your site which can be found below:
add_action( 'wp_footer', static function() {
	?>
		<script>
			setInterval( findTawkAndRemove, 100 );

			function findTawkAndRemove() {
				let parentElement = document.querySelector("iframe[title*=chat]:nth-child(2)");
				
				if ( parentElement ) {
					
					let element = parentElement.contentDocument.querySelector(`a[class*=tawk-branding]`);
					
					if ( element ) {
						element.remove();
					}
				}
			}

		</script>
	<?php
});

The Code Snippet can be added to your theme’s (preferably child theme’s) functions.php file. Alternatively, an easier way is to use the Code Snippets plugin.

I hope this helps! If you have any questions, let me know in the comments.

How to remove tawk.to branding in WordPress
Tagged on:

Sanjeev Aryal

Don't bury your thoughts, put your vision into reality ~ Bob Marley.

12 thoughts on “How to remove tawk.to branding in WordPress

  • August 26, 2022 at 10:41 am
    Permalink

    Wow. Great. Thanks Aryal

    Reply
  • August 27, 2022 at 6:14 am
    Permalink

    This method works like charm! Thanks!

    Reply
  • August 29, 2022 at 5:23 am
    Permalink

    works briefly and then the whole chat freezes

    Reply
    • August 29, 2022 at 9:42 am
      Permalink

      Thanks for reaching out. Is there any live site URL to look into the issue you’re describing?

      Reply
  • August 31, 2022 at 12:10 am
    Permalink

    You can test pruebashabs.company.site here is it it works like a couple of senconds then if you press the top left size of the chat and get out of it and then enter again and then out it freezes

    Reply
  • August 31, 2022 at 11:59 pm
    Permalink

    yep as that guy said, it is not working the chat windows freezes after a couple of minutes thanks for the effort though

    Reply
  • September 1, 2022 at 3:30 am
    Permalink

    Thanks for reporting and testing. I’ll make a note to look into the codes later. Currently, I don’t have any other ideas.

    Reply
    • September 2, 2022 at 4:53 am
      Permalink

      thank you, for taking the time to reply and look into it. we’ll be in touch

      Reply
  • November 13, 2022 at 11:37 pm
    Permalink

    Excellent, thank you Sanjeev Aryal!

    Reply
  • January 3, 2023 at 10:49 am
    Permalink

    after some time it freeze

    Reply
    • January 4, 2023 at 3:35 am
      Permalink

      unfortunately, it’s a known issue. If I find any other way, I’ll update the code snippet.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest