Getting a jQuery library to work in WordPress & Avada
Here’s a tweaked version of the original code. get_template_directory_uri() is used instead of hard coding the URLs, the scripts and styles are enqueud rather than just being registered, and the dependencies are specified. <?php function wptuts_scripts_load_cdn() { wp_enqueue_script( ‘multi-select’, get_template_directory_uri() . ‘/selector/js/jquery.multi-select.js’, array( ‘jquery’ ), null, false ); // JavaScript for theme. Presumably where you’d … Read more