• stefanpaudler

    (@stefanpaudler)


    I need help with a newly discovered issue with a gallery page. I have several gallery pages on my site and only the one that was most recently updated (probably around 25th October) displays the issue that the gallery images are showing in only one column instead of four columns.

    Example of a gallery that’s working correctly

    If I go and edit the page that is working correctly and go to ‘preview in new tab’, it shows the gallery images in only one column, even if I don’t change a thing. I therefore don’t think it’s a problem with the page, but with a recent WP update or maybe the theme (Soledad), but from googling, that other users have experienced this or very similar issues in the past. I can’t find a solution for it though.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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://www.ads-software.com/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 2 years ago by lisa.
    • This reply was modified 2 years ago by lisa.
    • This reply was modified 2 years ago by lisa.
    Thread Starter stefanpaudler

    (@stefanpaudler)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple column gallery displaying in one column’ is closed to new replies.