{"id":3114,"date":"2014-03-16T20:29:00","date_gmt":"2014-03-16T20:29:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/why-does-jquery-isotope-work-on-my-local-machine-but-not-online-collection-of-common-programming-errors\/"},"modified":"2014-03-16T20:29:00","modified_gmt":"2014-03-16T20:29:00","slug":"why-does-jquery-isotope-work-on-my-local-machine-but-not-online-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/why-does-jquery-isotope-work-on-my-local-machine-but-not-online-collection-of-common-programming-errors\/","title":{"rendered":"Why does jquery Isotope work on my local machine but not online-Collection of common programming errors"},"content":{"rendered":"<p>There are two versions of jQuery loaded in the page 1.9.1 and 1.8.3.<\/p>\n<p>One is loaded in the header (1.9.1)<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>Another one from wordpress<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>I think it is the reason, remove one of them and it should work fine<\/p>\n<p>Or make it compatible with jQuery.noConflict()<\/p>\n<pre><code>jQuery(function($){\n    $.ajaxSetup({ cache: false });\n    var $container = $('#articlePost');\n\n    $container.isotope({\n        masonry: { columnWidth: $container.width() \/ 3}\n    });\n\n    $(window).smartresize(function(){\n        $container.isotope({\n            \/\/ update columnWidth to a percentage of container width\n            masonry: { columnWidth: $container.width() \/ 3}\n        });\n\n        $container.isotope('reLayout');\n\n    });\n});\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There are two versions of jQuery loaded in the page 1.9.1 and 1.8.3. One is loaded in the header (1.9.1) Another one from wordpress I think it is the reason, remove one of them and it should work fine Or make it compatible with jQuery.noConflict() jQuery(function($){ $.ajaxSetup({ cache: false }); var $container = $(&#8216;#articlePost&#8217;); $container.isotope({ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3114"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3114\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}