Viewing 2 replies - 1 through 2 (of 2 total)
  • Open plugins > editor > advenced-browser-check/abc-core.php and find these lines :

    // Load jQuery
    wp_enqueue_script( "jquery" );
    // jQuery cookie, used to add a cookie so visitors can hide the popup
    wp_enqueue_script( "apc_jquery_cookie", plugins_url( '/js/jquery.cookie.js', __FILE__ ), array( 'jquery' ) );
    // The ajax request so the plugin works with caching plugins
    wp_enqueue_script( "abc_script", plugins_url( '/js/script.js', __FILE__ ), array( 'jquery' ) );

    In my case i use external jquery so i commented first line. For jquery.cookie.js and script.js to load in footer change lines to :

    wp_enqueue_script( "apc_jquery_cookie", plugins_url( '/js/jquery.cookie.js', __FILE__ ), array( 'jquery' ), '', true );
     wp_enqueue_script( "abc_script", plugins_url( '/js/script.js', __FILE__ ), array( 'jquery' ), '', true );

    and repeat on every update.

    Plugin Author Mattias

    (@darkwhispering)

    Above posted comment is the best solution atm.

    I might update the plugin in the future with an option to load the JS assets in header or footer section.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS in Footer’ is closed to new replies.