I'm trying to add the jquery Masonry script to my ES stream. I can't figure out which file I need to add the script to. I tried the default.php file in the Stream folder but it didn't work. Below is the code snippet that I am adding. I've done this before for easyblog posts and it worked fine. I have the stream items showing in a 2 column layout but I can't get the items to align vertically. (see my homepage) Any suggestions?
<script type="text/javascript">
EasyBlog.require()
.library('masonry')
.done(function($){
$('.es-content').masonry({
// options. see their site for full API reference
columnWidth: 75px,
itemSelector: '.es-stream',
padding: '1px',
isAnimated: true,
});
});
</script>