jQuery scripts come in all kinds of shapes and sizes. They can do a variety of awesome things, but implementing them into your WordPress website can be a challenge for beginners. In particular, if the documentation is littered with hard-to-understand jargon and unclear instructions. In this article we shall walk you through the process of correctly implementing jQuery scripts into WordPress sites.
Using a Child Theme
Firstly, we’re going to be using a child theme to add scripts to a WordPress website. If you’re using a premium WordPress theme then chances are, that you have been provided one with your purchase. If not, you can easily create your own child theme. With your child theme installed and activated on your WordPress site, you’re ready to start adding scripts to it. The child theme will ensure that your implementations won’t get lost in case you update the parent theme in the future.
Choosing a jQuery Script
Let’s use a zoom on hover script called Drift as an example. By visiting the documentation for the script, you will be greeted with some installation information, let’s go through this for a moment.
https://mhthemes.com/support/knb/implementing-jquery-scripts-wordpress/