Do you want to add a back to album button to your image gallery? A back button is an important feature for your users if you have multiple image galleries inside an album. In this article, we will share how to display a back to album link in WordPress galleries.
Any photo album with galleries should include a “Back to Album” link. This navigation helps your visitors to easily browse through your various galleries. However, WordPress does not include the option for a back to album link by default.
For more help with this step, check out our guide on how to install Envira Gallery.
Once you’ve installed and activated Envira Gallery, you can start creating photo galleries. To learn more, check out our guide on how to create an image gallery with Envira.
Upon activating the plugin, you need to go to Envira Gallery » Addons from your WordPress backend.
Then install and activate the Albums Addon and the Standalone Addon.
After installing and activating the two addons, you can go to Envira Gallery » Albums. Then click on the Add New button at the top.
Start by adding a title for your photo album.
You will notice all of your image galleries are there in the Galleries section. Choose the galleries you would like to add to this photo album.
Once you’ve selected the galleries you’d like to include, click on the Publish button.
For more details on creating a photo album, check out our guide on how to create a photo album in WordPress.
Since we want to display a back to album link, we’ll need to disable lightbox view for our photo galleries. So instead of opening the galleries in a lightbox, they will open up in a new page.
To disable lightbox view, go to the Lightbox tab and uncheck the Enable Lightbox option.
Now it’s time to add our back to album link. Go to the Config settings, and checkmark the “Display Back to Album Link?” option.
Make sure to Update your photo album to save your changes.
To add your photo album into a WordPress post or page, you can go to Posts/Pages » Add New, or edit an existing post.
Then, simply paste the shortcode (that you copied in step 3) into the visual editor, and click on the Update button.
That’s all. We hope this article has helped you to learn how to display a back to album link in WordPress galleries. You may also want to check out our guide on what is the difference between albums vs galleries in WordPress.