Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
Would you like to enable shortcodes inside the gallery descriptions of your galleries? Envira Gallery makes that easy to do after a little customization. Let’s take a look at how to do this!
To enable shortcode in Envira gallery descriptions, just add the following code to a new file at /wp-content/plugins/envira-gallery-allow-shortcodes.php
:
<?php /* * Plugin Name: Envira Gallery - Allow Shortcodes in Envira Gallery Description * Plugin URI: https://enviragallery.com * Version: 1.0.0 * Author: Envira Gallery Team * Author URI: https://enviragallery.com * Description: Add shortcodes to your Envira gallery descriptions */ add_filter( 'envira_gallery_output', 'do_shortcode' );
If you’re unsure how to create a plugin file, follow these steps below:
envira-gallery-allow-shortcodes.php
In your next step, you’ll just need to activate the plugin.
Navigate to the Plugins from within your WordPress dashboard and activate the Envira Gallery – Allow Shortcodes in Envira Gallery Description plugin.
For more customization to Envira Gallery, check out how to style image title and caption hover effects.
A: Currently this only works for Envira galleries.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.