On my localhost web server these scripts are loading properly and functioning flawlessly, but on my BlueHost account my console is giving me errors about Isotope having no object.
Code:
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.isotope.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.infinitescroll.js"></script>
<script type="text/javascript">
$(window).load(function(){
$.ajaxSetup({ cache: false });
var $container = $('#articlePost');
$container.isotope({
masonry: { columnWidth: $container.width() / 3}
});
$(window).smartresize(function(){
$container.isotope({
// update columnWidth to a percentage of container width
masonry: { columnWidth: $container.width() / 3}
});
$container.isotope('reLayout');
});
});
</script>
And here is the Chrome console error:
Uncaught TypeError: Object [object Object] has no method 'isotope' www.theciv.com:92
(anonymous function) www.theciv.com:92
jQuery.event.dispatch jquery-1.9.1.js:3074
elemData.handle