By David Montoya on Thursday, 09 June 2016
Posted in Technical Issues
Replies 1
Likes 0
Views 605
Votes 0
I have a button that changes the appearance of my blog items, but masonry only updates, by default, upon changing the browser window's dimensions. I've come across the method to refreshing the layout, but I don't know how to call it properly. I'm calling all of my custom JS within /templates/jooswatch-v3-5/js/custom.js.

I'm attempting to mimic Gamespot's very clever method of "Latest Stories" layout change with simple JS and CSS.
Hi David,

Do you mean when you click on the button, you want the masonry layout to be changed? Currently in EasyBlog only nickel theme support masonry and you can take a look how masonry being called for the blog posts item at file 'JOOMLA/components/com_easyblog/themes/nickel/blogs/latest/default.js'


$('.eb-masonry').masonry({
itemSelector: '.eb-masonry-post'
});


Hope this help and have a nice day!
Sam
·
Friday, 10 June 2016 12:08
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post