Site logo

Archived topic

Gallery Columns not working after update to WP 5.9

6 replies · Started by Jenni on February 1, 2022

Viewing posts 1–7 of 7

After I updated to WP 5.9, the gallery is showing 8 columns. I have it set to 5 but it is still showing 8 on the page and only one in the admin section. I tried adding this custom CSS

.wp-block-gallery {
display: flex;
flex-wrap: wrap;
}

and then clearing cache, but this did not fix the issue.

Can you help, please?

Thanks!

Hi there,

what happens if you remove that Gallery Block, publish the changes and then add a new Gallery Block?

WP 5.9 did some refactoring so it may be a legacy code issue.

Still the same. I just made a new page, added a gallery and it's not appearing as a gallery, just full-size images in a single column.

Odd... your WP install isn't loading the latest stylesheets. And they made considerable markup changes to the Gallery which is why it now breaks.

Do you have any plugin/serverside caches and/or running a CDN ? If so can those be cleared - its a shot in the dark but may force the correct files to be loaded.

Yes, I have WP Rocket but have cleared cache and still the same. It's not letting me make a gallery on new pages, just stacked images unfortunaltely.

I just purged cache in Cloudflare as well as it works now! It still appears as one column in the post editing area, but on the live site it looks okay! Thanks for your help :)

Thats great to hear!
Given time perhaps the editor styles will update too

This archived topic is closed to new replies.