Site logo

Archived topic

Image gallery not stretched out to full width

6 replies · Started by Brett on September 7, 2021

Viewing posts 1–7 of 7

Hi.

I have created a blog post containing a few blocks of text, image galleries and videos. In one container there is a two-column-gallery with one image loaded from the media library and one animated gif loaded from vimeo. This one is stretching out full width. A bit further down the post I created another two-column-gallery with the same setup, an image and an animated gif. But this one is not stretching out to full width. I've tried a few tricks but I can't figure out why they differ. The one that is not stretching can be found in this test post, before the yellow section with the text "Check out the end result". https://brokendoll.com/test-planetfall-invasions/

Any ideas?

Thanks in advance.

Hi Brett,

Are you referring to this one here?
https://www.screencast.com/t/GPtsLC1Q

Looks like the issue because the inner container of the container block from GP is set to contained:
https://docs.generateblocks.com/article/container-overview/#inner-container

Also just a note that since you are already using GB, I'd recommend replacing all the columns block (from WP core) with Grid block from GP:
https://docs.generateblocks.com/article/grid-overview/

Let me know if this helps :)

Hi Brett,

Are you referring to this one here?
https://www.screencast.com/t/GPtsLC1Q

Looks like the issue because the inner container of the container block from GP is set to contained:
https://docs.generateblocks.com/article/container-overview/#inner-container

Also just a note that since you are already using GB, I'd recommend replacing all the columns block (from WP core) with Grid block from GP:
https://docs.generateblocks.com/article/grid-overview/

Let me know if this helps :)

Hi there,

try adding this CSS:

.wp-block-gallery .blocks-gallery-grid {
    width: 100% !important;
}

Oh! Works great. Thank you!

Glad to hear that!

This archived topic is closed to new replies.