Envira Gallery Documentation

Documentation, Reference Materials and Tutorials for Envira Gallery

How to Use the Envira Gallery Random Images Widget

Would you like to add a gallery containing random images to any widget area on your site? Envira Galleries containing random images can be added to any widgetized section of your site using the Envira Gallery Random Images widget. You can also limit the number of images to show from that gallery inside the widget. This tutorial will show you how to set this up.

Please follow our instructions on how to install and activate addons.

In this instance, you’ll just need to make sure the Envira Gallery 1.8.4+ is installed and activated on the site.

First you’ll need to create a new gallery. If you need any help creating your first gallery, please review our documentation here.

From the WordPress dashboard, hover over the Appearance menu item in the left sidebar menu, then click the Widgets sub-menu item.

To configure your Envira Gallery widget you'll need to navigate to the Widgets screen in the WordPress admin.

Locate your Envira Random Images Widget in your Widget Menu from the available widgets on the left.

Select the Envira Gallery Random Images widget to choose which widgetized section of your site to add it to.

Select your Widget Location, and click Add Widget as shown below.

Next, you’ll want to select which gallery you want to display in your widget.

For the purpose of this documentation, we’ll be selecting the My Image Gallery gallery to show in the widget.

I’ve also told the widget to only show 10 images from this gallery.

Configure your Envira Gallery Random Images Widget

Just give your widget a title, select your gallery, choose the action for when the images are clicked, and choose how many images you wish to show for this particular widget.

You’re final steps is to click Save.

Congratulations, you’ve added an Envira Gallery to a widget!

If you’d like to have some more fun with Envira, check out our tutorial on How to Load Your Gallery Lightbox from a Text Link.


A: If you’ve selected to limit the number of images to show on your widget, only those images would show in the gallery view and in the lightbox view.

A: For this widget, the titles and captions are pulled directly from what is entered inside of the image metadata screen inside the WordPress Media Library. The titles and captions entered in the WordPress Media Library will override any titles and captions entered directly inside of Envira Gallery.