Gallery Issue – Images Stacked Into 1 Column

Posted in: Newsmag
Post count: 23

I have this issue on Newsmag 5.2.3 and WP 6.1.1
All images in a gallery are sorted into one column. I disabled Lightbox but it is still not working.
Please help me fix it.
Thanks

Post count: 35449

Hi ricky86,
The problem is related to the lightbox, this still applies even if you disable it in the theme panel? – https://i.imgur.com/Ti1HSSE.png
Thank you!

Post count: 23

Yes lightbox is disabled in theme panel, it is not working in the posts.
But image gallery is still showing incorrectly.

Post count: 35449

Hi,
Can you please provide a link where I can inspect a gallery? In this way will be more simple to see what is happening and to provide a proper solution.
Thank you!

Post count: 23
Post count: 35449

Hi,
It looks like the element you use for the gallery has a stronger css than the one from the theme.
If you want to set them nicely on 2 columns you can use this custom css:
figure.wp-block-gallery.has-nested-images {
display: flex;
flex-wrap: wrap;
}

Set this css in the theme panel > custom code> custom css.
Also, if you want to remove the click from images on the gallery you can use this custom css.
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a {
pointer-events: none;
}

I hope this will help you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.