0

I am trying to add a jquery plugin to my wordpress site. the plugin is: http://www.xarg.org/project/jquery-webcam-plugin/

I activated jquery in my functions.php added the script to my files

like this:

function webcam_script() {

wp_deregister_script('jquery');

wp_register_script('jquery', 'http' . ($_SERVER['SERVER_PORT'] == 443 ? 's' : '') . 
'://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', false, null, true);

wp_enqueue_script('jquery');

wp_register_script('my-js', get_template_directory_uri() . '/js/jquery.webcam.js', false, 
null, true);

wp_enqueue_script('my-js');
}

add_action('wp_enqueue_scripts', 'webcam_script');

but this plugin doesn't give me a lot of information on how to activate it. And putting it in wordpress is making me even more confused. I want the webcam to be on the homepage (video page)

here is a link to my site:

http://i-am-here.net/wordpress/

4

0 回答 0