[Resolved] Make gallery single-column on mobile

Home Forums Support [Resolved] Make gallery single-column on mobile

Home Forums Support Make gallery single-column on mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2331719
    scometamus

    Dear GP-team,

    is there a way to make a gallery which is 2 columns on desktop/tablet view 1-column on mobile view?

    Thanks in advance!

    #2331784
    Leo
    Staff
    Customer Support

    Hi there,

    Since you are using the Grid/Container blocks from GB, you can set different container widths on different devices using the responsive controls:
    https://docs.generateblocks.com/article/container-overview/#layout-%E2%80%93-grid-item
    https://docs.generateblocks.com/article/responsive-controls/’

    Let me know if this helps ๐Ÿ™‚

    #2331845
    scometamus

    Thank you Leo for the info! Did I understand it correctly that I need a Grid Layout in order to make it 1-column on mobile view? Because I only have a container with a gallery and I don’t see any option in your articles to set different container widths here.

    #2331856
    Leo
    Staff
    Customer Support

    Did I understand it correctly that I need a Grid Layout in order to make it 1-column on mobile view?

    That’s correct.

    This should be the structure of the gallery:
    https://www.screencast.com/t/uslSy0jw8

    #2331870
    scometamus

    Awesome, worked perfectly. Thanks a lot!

    #2331882
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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