I keep getting this error "$.cookie is not a function" when trying to implement jQuery cookies.
As far as I can tell I'm implementing the plugin correctly:
First loading: /wp-content/themes/divi-child/js.cookie.js
Then loading my custom code: /wp-content/themes/divi-child/custom.js
But using the following in 'custom.js':
jQuery(document).ready(function($) {
$.cookie("test", 1);
});
...creates this error in console:
custom.js:2 Uncaught TypeError: $.cookie is not a function at HTMLDocument. (custom.js:2)
Site can be previewed here: http://dtodd.co.uk/