Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity stream multi-column with Masonry


  • Studio PeetR
    Participant

    @studio-peetr

    WordPress 5.4.1
    BuddyPress 6.0.0
    Site: http://84.107.187.34/upfrog

    I managed to make the activity stream multi column with third party software “Masonry” (https://masonry.desandro.com).
    The problem I’m facing is calling the masonry-script after the activity stream is completely loaded. For now I used a timeout function to get it working:

    setTimeout(function(){
    $('.activity-list').masonry({
      // options
      itemSelector: '.activity-item',
      columnWidth: 300
    });
    }, 3000);

    Can anyone tell me how to call the script the right way?

    Thanks so much in advance and with kind regards,
    Peter

Viewing 3 replies - 1 through 3 (of 3 total)

  • oligoform
    Participant

    @oligoform

    You could try it with this:

    jQuery(document).ajaxComplete(function() {
    //your Code
    });

    Studio PeetR
    Participant

    @studio-peetr

    Thanks so much for your suggestion Oligoform!
    Sadly it didn’t do the trick…
    I tried this before:
    jQuery(document).ajaxStop(function() {
    which also failed.


    wizardoliver
    Participant

    @wizardoliver

    Hi, Studio PeetR

    I would also like to build a multi-column Activity stream with Masonry, too. Have you already come to a solution?

    Best regards
    Oliver Meyer

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar