-
marcobo
Hello,
After updating Firefox to version 125.0.2, the Gutenberg gallery (.wp-block-gallery .columns-4) in WordPress 6.5.2 with GeneratePress 3.4.0 is displaying only three columns instead of four. This issue does not occur in Chrome or standard WordPress themes.
Can you help me resolve this behavior?
Thank you, Marco
-
Hi there,
might be worth reporting that to WordPress, as its to do with their super convoluted CSS method to work that grid.
For now you could just overwrite the grid with some CSS Grid:.wp-block-gallery.columns-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .wp-block-gallery.columns-4 > .wp-block-image { width: 100% !important; } @media(max-width: 800px) { .wp-block-gallery.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
You do have some CSS in your child theme that sets the gallery image width which will need removing as the images need to be 100% on all screen sizes
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.