Hi everyone I run a javascript script on several pages but not all, is that there wp_enqueue_script function but not know how to do and where I need to insert. I've tried several codes but do not realize what I want and is only running on various pages. If someone is kind enough to help me understand here I leave a link to the information I found and further down the code I use. Thanks for reading.
http://www.masquewordpress.com/como-incluir-scripts-en-paginas-wordpress/
function imageAleatoria(){
if(is_page('http://localhost/wordpress/wp-content/?=79')) wp_enqueue_script('imagen','/http://localhost/wordpress/wp-content/js/imagenesAleatorias.js));
}
add_action('imagen','imageAleatoria');