Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119398

ehansen723 on "[Plugin: Read More Right Here] Trigger Masonry as a callback"

$
0
0

Thanks for pointing out the custom event names; I must've missed that FAQ. But I guess I'm still too new to the syntax of callbacks… I've tried lots of variations of the code below with no luck. (I'm including the whole chunk of script I'm using for reference.) Do you have any more insight or is this something I should contact the author of the other plugin about?

<script type="text/javascript">
  	$(function(){
		var $container = $('#posts');
		$container.masonry({
			itemSelector : '.post',
			gutterWidth: 18
		});
		$('.post').bind('RMRHContentExpanded RMRHContentCollapsed',function() {
			$container.masonry('reLayout')
		});
	});
	</script>

Viewing all articles
Browse latest Browse all 119398

Trending Articles