The Gallery Block

Read time: 4 minutes


The Gallery block in WordPress is ideal for displaying a collection of images in a visually appealing manner. Here’s how to add and customize a Gallery block on your WordPress site.

Adding a Gallery Block

Navigate to the Gallery Section:
  1. Start by logging into your WordPress dashboard.
  2. From the sidebar menu, select the appropriate post or page where you want to add the gallery.
Add a New Gallery:
  1. Within the post or page editor, click on the + icon to add a new block.
  2. Search for “Gallery” and select it from the available block types.

Customising the Gallery

Content Tab:
  • Gallery Images: Select items from the media library to add to the gallery. By default, these will be displayed as thumbnails. When selected on the page, a larger version will be shown.
Settings Tab:
  • Section ID: Add an optional ID to enable smooth page scrolling to this section via on-page links.
  • Remove Bottom Margin: Toggle this option if you want to remove the default margin at the bottom of the block. This setting makes the block sit flush with the block below it.
  • Display Gallery as Carousel: Enable this option to display the gallery in a carousel format.
  • Gallery Size: This option determines how the gallery displays. Options include large, default, and full width.
  • Gallery Gap: Add a gap between each image. Options for gap sizes include none, small, medium, and large.

Example Configuration

  • Gallery Images: Add a selection of event photos to showcase the highlights.
  • Section ID: gallery-section
  • Remove Bottom Margin: Yes
  • Display Gallery as Carousel: Yes
  • Gallery Size: Full width
  • Gallery Gap: Medium

With these settings, your gallery will be beautifully displayed on your page, providing an engaging visual experience for your visitors.