- This topic has 7 replies, 3 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
November 16, 2022 at 6:36 am #2417977
Pops
Hi,
I hope you can help.
My website has – somehow on its own – changed from a gallery/grid of rows of 4 photos, to a page where the page it just a vertical town of photos one under neath the other. I can’t seem to get it back to how it was.
Can anyone please offer advice.
I am adding site in the ‘sensitive’ information box.
Thank you
November 16, 2022 at 7:53 am #2418304David
StaffCustomer SupportHi there,
Yeah WP 6.1 made changes to how their CSS for galleries is applied, and it seems to break older galleries.
Try this CSS to fix that:can you try adding this CSS:
body .is-layout-flex { display: flex; flex-wrap: wrap; }November 16, 2022 at 8:42 am #2418415Pops
That is so great.
Thank you 🙂
Very much appreciated as always 🙂
P
November 16, 2022 at 8:56 am #2418427David
StaffCustomer SupportGlad to be of help!
November 16, 2022 at 10:55 am #2418568Ian
This is concerning, wow. I wanted to test this so updated to 6.1.1 for 1 site and sure enough, the gallery broke. I tried to insert a new gallery and it still breaks. David, do you know if the WP Core team is aware of this and will roll out a fix? Already had to run custom css to fix the Gallery block when using Shortpixel to display webp and avif. Hoping we don’t have to run more custom code to use the core Gallery block? Nuts.
November 17, 2022 at 4:40 am #2419401David
StaffCustomer SupportReading in more detail, some users experience the issue when they dequeue WPs global styles.
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );Which it seems that some optimizing plugins do disable – see Franks reply regarding autoptimize here:
https://core.trac.wordpress.org/timeline?from=2022-11-10T06%3A04%3A22Z&precision=second
You can keep track of the issue here:
CoreTrac:
https://core.trac.wordpress.org/ticket/56970Gutenberg GitHub:
https://github.com/WordPress/gutenberg/issues/45713November 17, 2022 at 10:54 am #2420200Ian
Thanks for sharing David! Crazy how gallery and query loop broke after 6.1. As support has offered a solution with custom css, we can only hope there is a hard fix to follow. I see Frank’s response, can’t believe 3rd party providers have to provide a fix for core, ouch right!
Thanks again!
November 18, 2022 at 4:52 am #2421258David
StaffCustomer SupportAre you using Autoptimize ?
-
AuthorPosts
- You must be logged in to reply to this topic.