Hi there, I have JavaScript errors on several pages in X Theme using isotope.js.
I am trying to use the smartresize() function, but after doing some research, I have learned that smartresize() has been removed from isotope v2, which I assume has now been installed when X theme was updated.
Here is the script that is making the call:
jQuery(document).ready(function($) {
var $container = $('#x-iso-container');
$container.before('<span id="x-isotope-loading"><span>');
$(window).load(function() { $container.isotope({ itemSelector : '.x-iso-container > .hentry', resizable : true, filter : '*', containerStyle : { overflow : 'hidden', position : 'relative' } }); $('#x-isotope-loading').stop(true,true).fadeOut(300); $('#x-iso-container > .hentry').each(function(i) { $(this).delay(i * 150).animate({'opacity' : 1},500); }); });
$(window).smartresize(function() { $container.isotope({ }); });
});
How do I go about changing that code to work without the smartresize function. Right now, the page is broken and the elements are not displaying or resizing properly.
Thanks!