lisa
(@contentiskey)
I tested with twenty twenty theme, sparkling theme, + twenty twenty one theme installed on a test site with WordPress 6.1 installed. I was able to use gallery block and set for display of multiple columns. I edited page and changed # of columns.
This is the class for the gallery on my test site:
“is-layout-flex wp-block-gallery-1 wp-block-gallery aligncenter has-nested-images columns-4”
—-
I see a difference in the classes of the 2 galleries on your site that you could explore further:
page that is showing multiple columns
“is-layout-flex wp-block-gallery-1 wp-block-gallery aligncenter columns-4”
page that is showing single column:
“is-layout-flex wp-block-gallery-1 wp-block-gallery has-nested-images columns-4”
—
Additional Suggestion: install and activate this plugin: https://ww.wp.xz.cn/plugins/health-check/
In “troubleshooting mode” you can change to a different theme and deactivate plugins to narrow down the source of the issue.
-
This reply was modified 3 years, 7 months ago by
lisa.
-
This reply was modified 3 years, 7 months ago by
lisa.
-
This reply was modified 3 years, 7 months ago by
lisa.
Thank you, Lisa
Thanks for spotting the difference in the classes of the two galleries. I have edited the class on the 2022 gallery that only displays in one column and yes, this changes it to columns, albeit five instead of four columns, which is odd.
If I go in to edit both galleries in WordPress, there is no difference in the way the gallery blocks are set up other than 2022 having no center alignment. As soon as I preview the 2021 gallery without making any changes, it also shows the same change to the class as the 2022 gallery, ie. contains ‘has-nested-images’. The ‘aligncenter’ does not appear to make any difference.
I have the site health plugin, so I have tried your additional suggestion and it turns out that the 2022 gallery is displayed correctly, ie in four columns, when I switch it to the default theme (I tried twenty-twenty-two and twenty-twenty-three themes).
I have then switched it to the Soledad master theme (rather than the child theme) and that also fixes the issue. So, I now need to investigate what in the child theme CSS is causing the issue. I can’t remember making any changes to this recently, but I will check and comment my most recent changes out to see if this fixes the issue.