YITH and MasonryJS
-
Hello there!
I’m having problem integrating your plugin with Masonry.
It seems that Masonry can’t properly detect when your plugin is updating the DOM and adding the new post articles. I’ve tried to work around a bit, but no success so far. Can you provide with better documentation or with a solution for how to use YITH with Masonry.Here is my code in progress, but still no success.
jQuery(document).on( 'yith_infs_adding_elem', function(){ if ( jQuery.fn.masonry ) { var container = jQuery( '.articles--container .masonryHold' ); container.masonry('reloadItems'); } });
The topic ‘YITH and MasonryJS’ is closed to new replies.