Archived topic
Image gallery does not display correctly
1 reply · Started by Stratos on September 3, 2022
Hello,
I have a problem with image gallery in the block editor. Although I select to have 4 columns with cropped images when I open my article with my chrome browser sometimes it shows like it has three columns instead of four.
The problem is strange because when I make a preview from inside the editor or when I open the page while I also have the editor open in another tab it shows correctly but when I close everything, reopen my browser and go directly to my website it shows again as if I have the gallery with three columns.
On my smartphone with Chrome it seems to display correctly with four columns.
I have the same problem with all my articles where I have an image gallery with four images I want to be shown in four columns.
I have provided a link for one of my articles. You can see the gallery at the end of it. Any ideas?
Hi there,
The gallery block is a WP core block so the theme doesn't have any control over it.
A couple of options I would recommend:
- Manually creating the gallery using the Grid and image blocks from GB:
https://docs.generateblocks.com/article/grid-overview/
https://docs.generateblocks.com/article/image-overview/
- Use a gallery plugin like Envira.
Let me know if this helps :)