Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Masonry – Removing an item

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #169220
    Jason Penezich
    Participant

    Hi! I’m looking for a way to remove an item from the flow of things within a masonry layout. I’m developing a WP site and for sticky posts i’d like to remove them. Right now this is where I am at:

    var container = document.querySelector( '#main' );
        var stampElem = document.querySelector( '.sticky' );
        var msnry = new Masonry( container, {
          itemSelector: '.masonry-item',
          msnry.stamp( stampElem );
        });
    

    I can’t get it working and my java is lack luster. Is this doable? The stickys will be 100% width and breaks the layout, so I need to be able to style around them.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.