[Plugin: LeagueManager] Load Script Separately
-
Is there a way to load jquery, stack and thickbox (‘or better change it for fancybox’) outside the header, well I mean in the footer??
I tried all in my possibilities, like
in header:wp_deregister_script('jquery'); wp_deregister_script('thickbox'); wp_deregister_script('sack');
then add to function.php
function my_init() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2', true); wp_register_script('sack', get_bloginfo('url') . '/wp-includes/js/tw-sack.js', array('jquery'), '1.6.1', true); wp_register_script('thickbox', get_bloginfo('url') . '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1', true); wp_enqueue_script('jquery'); wp_enqueue_script('thickbox'); wp_enqueue_script('sack'); } } add_action('init', 'my_init');
any idea how to make this possible?
thanks all
- The topic ‘[Plugin: LeagueManager] Load Script Separately’ is closed to new replies.