Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

Add Space Between Images

How to Add Space Between Images In WordPress Galleries

by Waseem Abbas on Feb 8, 2018

Do you want to add margin between the photos of your image gallery? Space between the images look beautiful, and the visitors can differentiate among photos. In this tutorial, we will share how to add space between images in your WordPress galleries.

By default, WordPress sets the spacing between photos according to the number of columns in the image gallery. You should use Envira Gallery plugin to create photo galleries with full control on the margin space between images.

To add space between images in your WordPress galleries, you’ll need to follow these 4 steps:

  • Step 1. Install and activate Envira Gallery plugin in WordPress
  • Step 2. Create an image gallery using Envira
  • Step 3. Go to config tab & set the space between images
  • Step 4. Display the image gallery in WordPress

By the end of this tutorial, you’ll be able to add more space between images that will look like as shown in this image below:

Space Between Images in Galleries

Ready to get started? Let’s go!

Step 1: Install and Activate Envira Gallery Plugin in WordPress

First thing that you need to do is to install and activate Envira Gallery plugin on your WordPress site.

Envira Gallery

If you need to know about installing the plugin, then simply check out this guide on how to install and activate Envira.

Step 2: Create an Image Gallery Using Envira

Upon activating the plugin, you need to go to Envira Gallery » Add New from your WordPress admin backend.

Start by adding title in the first field of the image gallery. Next you should add photos in the Native Envira Gallery section.

Add Photos

To learn more about gallery settings, you should check out this guide on how to create an image gallery with thumbnails in WordPress.

Step 3: Go to Config Tab & Set the Space Between Images

After adding the photos, you need to scroll down to Config tab and look for the Number of Gallery Columns option.

In case, if the gallery columns are set to Automatic, then scroll down to Automatic Layout: Margins. By default, the space is set to 1 pixel. You can change it as per your need for the image gallery.

Automatic Margin Layout

However, if you plan to change the gallery columns setting from Automatic to any other option, then you need to scroll down to set the values for Column Gutter Width and Margin Below Each Image.

Gallery Columns

It is recommended to set a proportional value for both the settings to add space between images beautifully.

Column Margin Space

Now you can hit the Publish button from right side of your screen and go ahead to display this image gallery in WordPress.

Step 4: Display the Image Gallery in WordPress

Once published, you’ll see a new Envira Code widget on the right side of your screen under the Publish widget. Copy the shortcode from here.

Copy Shortcode

Simply go to Pages/Posts » Add New or edit an existing post. In the visual editor, you need to paste the shortcode.

Paste Shortcode

Make sure to Publish the page/post.

You should visit your website to see the image gallery with added spacing that will look like as shown in this image below:

Gallery with more Space Between Images

That’s all. We hope this tutorial has helped you to learn how to add more space between image galleries in WordPress. You may also want to check out our guide on how to create a masonry image gallery in WordPress. If you want to protect your gallery images, then check out this ultimate WordPress security guide.

If you like this tutorial, then please follow us on Facebook and Twitter for more free WordPress guides and resources.

Comments

  1. Is this a premium feature? I can’t find the margin setting when the columns are set to automatic. Thanks for the great work!

      1. Hi Jon, thanks for highlighting it. You can scroll down on the Config tab and change the Margin Below Each Image setting. We are updating the article soon. 🙂

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.