WhatsApp for WordPress
  • Introduction
  • Getting Started
    • How to Install
    • How to Update
  • How It Works
    • Multiple Agents
    • Button Customizer
    • Floating Widget
    • WooCommerce Button
    • Custom WhatsApp Button
    • More customization with CSS
  • Settings
    • User Roles
    • Event Tracking
    • Google Tag Manager
  • Integrations
    • WPML
    • Polylang
    • Loco Translate
    • Dokan Multivendor
  • Compatibility
  • Developer Zone
    • Filters
    • WhatsApp JS
      • README
  • Why Upgrade?
  • Other Links
    • FAQs
    • Troubleshooting
    • Changelog
    • Support
Powered by GitBook
On this page
  • 1. Speed Optimizer by SiteGround blocks the WhatsApp Widget from displaying on the website.
  • 2. LiteSpeed Cache plugin breaks the WhatsApp Widget format on the website.
  • 3. Cache plugin hides the WhatsApp Widget on the website.

Was this helpful?

  1. Other Links

Troubleshooting

PreviousFAQsNextChangelog

Last updated 6 months ago

Was this helpful?

1. Speed Optimizer by SiteGround blocks the WhatsApp Widget from displaying on the website.

If you are using the Speed Optimizer plugin on your website, then you might face this issue, because the plugin has got some added features which block the WhatsApp scripts from rendering properly.

Solution: Exclude the WhatsApp plugin's script from these three locations as shown in the screenshots below:

If you are using the WhatsApp PRO version, add the following scripts to each of the three sections of the SG Optimizer plugin;

/plugins/whatsapp-for-wordpress/assets/dist/js/njt-whatsapp.js
/plugins/whatsapp-for-wordpress/assets/js/whatsapp-button.js

If you are using the WhatsApp free version, then this is how the path looks like for you, hence you should add this and not the one above;

/plugins/wp-whatsapp/assets/dist/js/njt-whatsapp.js
/plugins/wp-whatsapp/assets/js/whatsapp-button.js

2. LiteSpeed Cache plugin breaks the WhatsApp Widget format on the website.

When you are using the LiteSpeed Cache plugin and the WhatsApp floating widget appears broken on the site, please exclude the CSS as shown below to ensure it functions correctly.

/wp-content/plugins/wp-whatsapp/assets/dist/css/style.css

3. Cache plugin hides the WhatsApp Widget on the website.

If a cache plugin is active on your site (such as WP Rocket) and the floating widget does not show up, please try adding the following CSS to fix the issue. #wa{ content-visibility: inherit !important; }

A screenshot showing SG Optimizer features
A screenshot showing WhatsApp plugin's scripts excluded in SG Optimizer settings
Excluding CSS in Page Optimization setting for reference