Forums

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

Home Forums Other jQuery Masonry with WordPress Reply To: jQuery Masonry with WordPress

#151319
TheDoc
Member

You’ll need to make sure you’re wrapping your JS in proper script tags:

<script>
var container = document.querySelector('#container');
var msnry = new Masonry( container, {
  // options
  columnWidth: 200,
  itemSelector: '.item'
});
</script>