Hello I have this script here and I need to put that in my current wordpress theme, but I am confused with the enqueue part. I know I have to save the hoverintent javascript in my themes library, do I also save the functions javascript in my themes library? Sorry if I did not clarify enough, comment if this is confusing please!
jsfiddle.net/ctLevz8L/59/
Take the javascript from your fiddle and save that to
wp-content/themes/mytheme/js/hoverintent.js
.Then, add the following to your theme’s
functions.php
file: