• whats wrong with the following code.. my script just doesnt seem to be included what did i do wrong..

    add_action(‘wp_print_footer_scripts’, ‘video_sidebar_scripts’, 1);

    function video_sidebar_scripts() {
    if(is_admin()) return;

    wp_enqueue_script(‘jquery’);
    wp_enqueue_script(‘video_widget_script’,plugins_url( ‘script.js’, __FILE__ ),array(‘jquery’),false,true);
    }

The topic ‘plugin/ widget include javascript’ is closed to new replies.