Native gallery or gutenberg

is there a way to add a gallery with native elements? or can i use a gutenberg gallery inside the layout builder?

i know there is ennvira gallery, but it is again a plugin that we have to use.

is there a native gallery element in the works?

thanks again

Hello @deranaloge,

Thanks for writing to us.

No, it is not possible to add the Gutenberg gallery inside the layout builder and regretfully there is no element of gallery at the moment.

You can use the default WordPress Gallery. For the gallery, I have created a default WordPress gallery. To create a gallery you need to click on the Add Media button —>Create gallery

Now you need to set the image number per column and image size. Please note you need to set the “Link To” as “File”.

It would add a shortcode to your content for the gallery.

For example
[gallery columns="4" link="file" ids="2029,2028,2027,2018,2017,2016,2015,2014"]

After adding the gallery you need to add this shortcode to make the image open in a lightbox on click event.

[lightbox selector=".gallery a"]

You can add this shortcode to your layout with the help of the Raw content element or Text element.

Hope it helps
Thanks

hi,
thank you for your answer.
i dont have the add gallery button in the media tab.
how can i add this?

thanks again

Hi @deranaloge,

The Add Media button is only available while adding a new post using the Classic Editor not the Block Editor or Gutenberg. Alternatively, you can use the Gallery component in Gutenberg which has the option to Create Gallery.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.