Skip to main content

Questions tagged [masonry]

Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall.

1 vote
2 answers
390 views

I'm working on a Gutenberg component that displays a grid of images using the core Masonry library (some code omitted for brevity): const containerMasonryRef = useRefEffect((element) => { var ...
leemon's user avatar
  • 2,048
0 votes
1 answer
494 views

I'm building a custom Masonry (non-jQuery version) gallery block and I managed to make it work in the block editor. I'm using WP 6.3. This is roughly the code: JS: const containerRef = useRef(null); ...
leemon's user avatar
  • 2,048
0 votes
1 answer
341 views

I'm trying to develop a Gutenberg block that needs the Masonry lib to work: const containerRef = useRef(null); const { attributes: { images, column_width, gap }, setAttributes, } = props; ...
leemon's user avatar
  • 2,048
0 votes
1 answer
145 views

I'm currently creating a wordpress theme and so far all my code is working fine (my theme is based on the isotope js gallery), but I would like to transform my normal grids into masonry grids, could ...
Frenchy35's user avatar
2 votes
1 answer
27k views

I'm trying to get the jQuery Masonry plugin to work on a site. I've updated my template files to get the proper classes where the plugin needs them. Then I enqueued my scripts like this: function ...
user3615604's user avatar
0 votes
1 answer
639 views

I have the following code that is supposed to display a masonry grid using bootstrap 4. I've tested the code but the grid will not be displayed correctly on desktop and tablets. On mobile instead ...
ZWPDev's user avatar
  • 116
0 votes
0 answers
35 views

I would like to know if there exists a similar plugin to how this page lists its' products below the main banner: https://www.ycmcnc.com/en Talking about this module: https://i.sstatic.net/1HFlS.jpg ...
Bostjan's user avatar
  • 109
1 vote
0 answers
113 views

I'm tearing my hair out over this. I've been tasked with some legacy work on a quite an old site. They have a template for a custom post type called resources. This template has search/filtering ...
benji_croc's user avatar
1 vote
0 answers
152 views

Until yesterday, all 10 tiles were showing on the main page on this website. After updating 3-4 pages and adding a "blog" function to them (separated by category), only 3-6 tiles will show at any ...
Elsie's user avatar
  • 11
0 votes
2 answers
723 views

I need to create masonry grid containing the latest posts. I created a grid based on https://masonry.desandro.com/ - the grid displays correctly. I am asking for help in creating a wp loop that will ...
sunnyluk's user avatar
0 votes
1 answer
754 views

So I noticed that I'm loading jQuery twice in my WordPress install and when I removed the CDN I added in my footer and just use the jQuery WordPress comes with my masonry stopped working and gave the ...
jordan's user avatar
  • 139
1 vote
0 answers
2k views

I am developing a WordPress Theme using masonry. but it generates following error on index page "Bad element for masonry: undefined" and these two errors on single.php "Bad element for masonry: ...
thunder's user avatar
  • 11
-1 votes
1 answer
1k views

I'm trying to build grid with Infinite scroll and Isotope. I'm using also ImagesLoaded plugin for images which overlaps each other. The problem is I still get images overlap even that I triggered ...
worldwildwebdev's user avatar
0 votes
1 answer
115 views

First off I always seem to have trouble getting my JS to work with WP. Currently I need some help figuring out what is going wrong with my javascript and ultimately what I am doing wrong. I have this ...
Chad J Treadway's user avatar
0 votes
1 answer
671 views

I have wordpress 4.3.1 installed on the intranet with a standard theme TwentyFourteen. When I use Firefox and Chrome to view the website, everything works exactly like it should. However, on IE9 and ...
Jake's user avatar
  • 101

15 30 50 per page