• Hi,
    the plugin doesn’t work if jQuery is loaded on the foot on the page (not in the head) because the tooltips initialization snippet is called before jQuery is loaded :

    <script type="text/javascript">
    jQuery(document).ready(function(){
    bluet_placeTooltips(".bluet_tooltip, .bluet_img_tooltip","left");
    moveTooltipElementsTop(".bluet_block_to_show");
    })
    </script>
    <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js'></script>

    How to fix that ?

    thanks

    https://ww.wp.xz.cn/plugins/bluet-keywords-tooltip-generator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jamel.Z

    (@lebleut)

    Hi Djsuperfive
    Yes but jQuery is automatically loaded in the head on this line :

    <script type="text/javascript" src="http://www._________.___/wp-includes/js/jquery/jquery.js?ver=1.11.1"></script>

    Do you want to change loading sequence to make the page load faster ?

    Thread Starter Maxime Freschard

    (@djsuperfive)

    Yes on my project I put jQuery manually at the bottom of y template.
    I think your plugin should give the option where to put your init code.

    Plugin Author Jamel.Z

    (@lebleut)

    you can load your jquery code with low priority to prevent that 😉
    exemple :

    add_action('wp_footer','_______jquery',1); //with the "1" priority which is lower then "10" the default priority

    I hope this works

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘jQuery’ is closed to new replies.