Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Pinterest-style Activity Feed

@henrywright

Moderator

If you take a look at the docs on the Masonry website you’ll see that you can do something like this with jQuery

<script>
jQuery('#container').masonry({
  columnWidth: 200,
  itemSelector: '.item'
});
</script>

#container and .item are used in the example but in BuddyPress they will be something like #members and .member. For example your BuddyPress page source code might look like this

<div id="members"> <!-- this is the #container -->

    <div class="member"> <!-- this is the .item -->
        <!-- various stuff happens here for a particular member -->
    </div>

    <div class="member"> <!-- this is the .item -->
        <!-- various stuff happens here for a particular member -->
    </div>

    <div class="member"> <!-- this is the .item -->
        <!-- various stuff happens here for a particular member -->
    </div>

</div>

Note I’ve made up these selectors, they will be something different so check your BP templates.

Skip to toolbar