I have a WordPress site that I would like to use a jQuery plugin called DataTables. I've been having troubling figuring out the right way to load the jQuery script and the DataTables script into WordPress.
I know I'm supposed to use something with: wp_enqueue_script("jquery")
- but I do not know where to put it or how to load the other jQuery plugin i need.
The last bit I tried was putting this in the header.php
file for my WordPress site:
<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?>
Any help would be greatly appreciated!