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.