With the upcoming release of WordPress 4.9, adding a photo gallery to your WordPress sidebar will become much easier. WordPress 4.9 adds a new Photo Gallery Widget to a growing list of available sidebar widgets.
In this tutorial, I’ll explain how to add a photo gallery to your WordPress sidebar using this new widget, as well as cover a few other options that provide even more flexibility.
Different ways to add a photo gallery to your sidebar:
- Using the WordPress Photo Gallery Widget
- More options coming soon…
01WordPress Photo Gallery Sidebar Widget
In your WordPress admin area, navigate to Appearance > Customize.
You could also do this from Appearance > Widgets, but the Customizer will provide you with a live preview.
Click on the section titled Widgets.
Depending on your WordPress theme, you might have a few sidebar locations in which you can add widgets. Choose the location in which you want to add a photo gallery.
In my example, I’m going to add a photo gallery to the Sidebar widget area.
Now click the + Add a Widget button.
Type in “gallery” in the search box to quickly locate the Gallery widget. Add this widget to your sidebar by clicking on it.
Now you should see an empty photo gallery widget. To add images to your gallery, click the Add Images button.
To choose images for your photo gallery, simply click on all the images you’d like to add. You can also switch to the Upload Files tab to upload new images. When you’re finished, click Create a new gallery.
You are now presented with several options for your sidebar photo gallery. Let’s run through each one.
- Re-order your images: Simply drag and drop your images to re-order them
- Image captions: Captions are optional, but will appear below each image in your gallery if you choose to add them. Just type them in “Caption this image…” box below each image.
- Link To: This is what happens to the image when someone clicks on it.
- Attachment page: This links to a specific page dedicated to your image, and might include additional details about the image. Most websites will not want this option.
- Media file: This will open the original image in its entirety. If you want visitors to be able to see the full, large-sized image, choose this option.
- None: The image will not be clickable.
- Columns: Choose how many columns your images should be displayed in. The more narrow your sidebar area, the fewer columns you should use. I recommend either 2 or 3 columns.
- Random Order: Checking this box will display your images in a random order.
- Size: This is the size of image that will be used in your photo gallery. Typically, you’ll want to use either the Thumbnail or Medium sized image.
When you are finished adjusting your gallery settings, click the Insert gallery button.
Photo Gallery Widget Title
A title is optional, but it will appear directly above the photo gallery in your sidebar. Just enter a title into the box labeled Title.
Schedule or Publish Your Sidebar Photo Gallery
The final step is to either Publish your photo gallery immediately, or schedule it to go live in the future. In the top-left corner of the Customizer, look for the Publish button. It might also say Schedule.
If you want to change when the photo gallery goes live, click on the settings icon to the right of the word Schedule or Publish.
Check out our article on how to schedule Customizer changes for more detailed instructions.
This is by far the easiest way to add a photo gallery to your WordPress sidebar without a plugin. If you’d like even more options for your gallery, read on to learn about a few sidebar photo gallery plugins.
Plugin options are coming soon.