28dogit
4/5/2020 - 5:42 PM

wordpress enqueue script & CSS

Come integrare script e files .css in Wordpress utilizzando il file functions.php

function myScript(){
   wp_register_script('myScrypt_jQ', get_stylesheet_directory_uri().'/js/jQscript.js',array('jquery'),'', true);
   wp_enqueue_script('myScrypt_jQ');
   wp_enqueue_style('animate_css', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css');
 }