This plugin enables extensive visibility control for tawk.to live chat window. Show the chat window with the short code for post and pages and manage the visibility for the front page and for category and tag pages with the site wide plugin options for these sort of pages.
Installing the plugin
- Download the plugin code tawkto-manager.zip.
- Upload zip file with the standard WordPress plugin installer.
- Activate the TawkTo Manager plugin via the plugins menu.
- Go to the settings via Settings and the TawkTo settings sub menu.
- Paste your tawk.to script in the text area Your tawk.to script.
- If Tawk.to Live Chat plugin is also installed then deactivate it.
Adding your tawk.to script with the plugin
Go to the plugin options page by logging in to the WordPress dashboard with admin rights and then choosing TawkTo settings from the menu on the left side in the dashboard. Paste your whole script into the text box with the label Your tawk.to script.
Using the short code for posts and pages
Add the short code tawkto_show to any page or post to show the chat window when the page / post is loaded.
Show chat for the front page with short code or via options
When a static page is used for the front page then adding the short code to this page will work. When using the option to show the latest blog posts on the front page, then the visibility can only be set via the plugin options.
Performance for both options doesn’t differ much. With the short code the script is added inline to the main content of the page or post and setting it via the option for the front page will be add it inline to the header.
Show chat on WooCommerce pages
This plugin is WooCommerce aware and activates the extra page options when WooCommerce is installed and activated.
Set visibility for category and tag pages
On the options page the visibility for category and tag pages can be set for all category and tag pages.
Technical design of the plugin code
Above design is optimized for page speed performance and for SEO purposes. Small inline scripts do not trigger a render-blocking script warning and this is the optimal way to add such a script for the given situation.
Effect of plugin on page speed performance (SEO)
The design of this plugin is optimized for page speed performance and for SEO purposes. All scripts are added in an inline manner and do not trigger a render-blocking script warning when tested with Google Page Speed Insights. This is an efficient way to add such the script to any page for the situation given.