• I use litespeed cache plugin.
    wpfront notification bar is not showing when litespeed is enable.
    it shows only when litespeed is disable.
    please solve this issue
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You just need to add this to JS Excludes and then clear your cache

    /wpfront-notification-bar.js

    The problem is when the plugin tries to load the bar using the page embedded script and the object ‘wpfront_notification_bar’ is still not created (because it is created in a JS file):

    HTML FILE:

    <script>
    if(typeof wpfront_notification_bar == "function") ...

    I’d add a jQuery ready event to run the embedded script to wait until the ‘wpfront_notification_bar’ object is created. Something like this:

    jQuery(document).ready(function() {if(typeof wpfront_notification_bar == "function")

    But it should be made in the plugin PHP classes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘doesn’t work with lite speed cache’ is closed to new replies.