• Resolved boppar

    (@boppar)


    About the last month I had an issue with the gallery block not working with Storefront.

    At the bottom of my homepage I have a gallery block with 6 images. On desktop view the images used to display all 6 images on one row. Now they are displayed 5 images on one row and the 6:th one displaying below, filling up the width.

    https://ibb.co/yPX6gY6

    What can I do to display all images on one row on desktop view?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @boppar

    I replicated the issue, which appears to be caused by either the template width or a problem in the Gallery block itself. Even when I ran a test using another default theme like Twenty Twenty-Four, I found that the Gallery block didn’t perform as expected.

    However, you can resolve this issue by adding custom CSS or creating a custom full-width page template.

    @media (min-width: 768px) {
      .page-id-3046 .col-full {
        max-width: fit-content !important;;
       }
    }

    Make sure you update the page ID to the correct one so that this CSS will work perfectly.

    You can also try another temporary workaround – setting 7 columns in the Gallery block. This should work perfectly fine for you!

    However, since the Gallery block is a default feature in the WordPress core, it would be best to reach out to them for further assistance here.

    I hope this helps! Please let us know how it goes or if you need further assistance.

    Thread Starter boppar

    (@boppar)

    Hi @shameemreza

    Thanks for your help. I tried adding another column (no 7) with an image. They all turned up on the same row.

    Then I tried removing the 7:th image, leaving 6 images in 6 columns. They turned up the same row.

    That was quite weird as before it didn’t work with 6 images.

    Hey, @boppar!

    From what I understand you were able to get the gallery as you wanted it after adding and removing the 7th image, correct?

    We are glad that you were able to solve the issue.

    If you need further help with this or anything else, or if you have any questions, please let us know so we can assist you further.

    Have a wonderful day!

    Thread Starter boppar

    (@boppar)

    Hi @carolm29

    That’s correct.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery block showing last image on a new row, filling up the width.’ is closed to new replies.