Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

WordPress Gallery with Random Image Sizes

How to Create a WordPress Gallery with Random Image Sizes

by Waseem Abbas on Jul 3, 2017

Do you want to add random thumbnail sizes for your image gallery? Sometimes you may need to allow your image gallery to display random sizes for thumbnails to attract your visitors in first impression. In this tutorial, we will share how to create a WordPress gallery with random image sizes.

By default, you won’t be able to create random image sizes for gallery thumbnails in WordPress. You need a plugin like Envira Gallery to create image galleries that’ll take your photos to next level.

To create a WordPress gallery with random image sizes, you’ll need to follow these 4 steps:

  • Step 1. Install and activate Envira Gallery plugin in WordPress
  • Step 2. Add an image gallery to your site using Envira
  • Step 3. Go to the config settings & select random image sizes
  • Step 4. Publish the image gallery in WordPress page/post

By the end of this tutorial, you will be able to see your WordPress gallery with random image sizes that’ll look like as shown in this image below:

Gallery with Random Image Sizes

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 in WordPress.

Envira Gallery

If you find any issues in installing this plugin, then check out our guide on how to install Envira in WordPress.

Step 2: Add an Image Gallery to Your Site Using Envira

Upon activating the plugin, you need to go to Envira Gallery » Add New to create a new image gallery in WordPress.

Simply add a title for the image gallery.

Add New Gallery

Next you should add photos in the Native Envira Gallery section of this image gallery.

Add Photos

You should check out our guide on how to create an image gallery with thumbnails in WordPress.

Step 3: Go to the Config Settings & Select Random Image Sizes

After adding the photos, you should scroll down to Config settings and go to Image Size option. You need to select Random in this dropdown.

Select Random Image Size

When you select Random, it’ll show you multiple sizes below the dropdown. Select one or more random image sizes for gallery thumbnails.

Multiple Image Sizes

Random will allow you to choose one or more WordPress image sizes that will be displayed as thumbnails for gallery view.

Step 4: Publish the Image Gallery in WordPress Page/Post

Once you are done with all the settings, simply hit the Publish button. A new Envira Gallery Code widget will appear below the Publish button.

You should copy the shortcode from here.

Copy Shortcode

Next you need to go to Pages/Posts » Add New or edit an existing page/post and paste the shortcode in the visual editor.

Add Shortcode

That’s all. You can go to your site to see photo gallery with random image sizes for thumbnails as shown in this image below:

Gallery with Random Image Sizes

We hope this tutorial has helped you to learn how to create a WordPress gallery with random image sizes. You may also want to check out our guide on how to add custom image sizes in WordPress & OptinMonster’s powerful exit-intent technology to convert your visitors into subscribers and customers.

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

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.

[i]
[i]
[i]
[i]