I'm new to Wordpress and this has been bugging me for a while. I'm wondering why the code I'm trying to include only works when I include jquery.min.js in 'head' despite the child theme already including jquery.js by default. Let me explain below.
I have a script near the end of my 'body' to specify images in galleries to not have a 'pin it' button show up when hovering over them:
<script type="text/javascript">
$(document).ready(function() {
$(".tiled-gallery-item a img").attr("nopin","nopin");
});
</script>
This code only works (ie., the nopin attribute is added to the relevant img tags) when I include this in the 'head':
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript" /></script>
However, it appears from inspecting source that the child theme already includes jquery.js:
<script type="text/javascript" src="http://blog.froy.com/wp-includes/js/jquery/jquery.js?ver=1.10.2"></script>
<script type="text/javascript" src="http://blog.froy.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1"></script>
Why the heck is the jquery.min.js necessary? I'm new to Wordpress and it's so confusing. I thought the jquery.min.js and jquery.js has no functional difference. What is the jquery-migrate.min.js?