Site logo

[Resolved] Make galleries mobile responsive

Home Forums Support [Resolved] Make galleries mobile responsive

Home Forums Support Make galleries mobile responsive

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1856078
    Erin

    Is it possible to make image galleries mobile responsive on all my blog posts?
    On many posts I have galleries with two vertical images side by side and I love that look on desktop but I’d like for them to stack vertically on mobile, is that possible?

    #1856081
    Leo
    Staff
    Customer Support

    Hi Erin,

    The gallery block is a WordPress core block so GP can’t control the style/layout.

    You could give this CSS a shot:

    @media (max-width: 768px) {
        .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item, .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item {
            width: 100%;
        }
    }
    #1856083
    Erin

    Thanks for helping even though it wasn’t a GP fix!!! Ya’ll really are the best, that worked!

    #1856091
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.