Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)