Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
Are you having any conflicts with the Enfold Theme and Envira’s Automatic Gallery? If you’ve noticed that the images aren’t showing until you hover over them and you’re using the Enfold Theme as well as an automatic gallery, this tutorial will help you correct this conflict.
There are a few ways to stop this conflict. One way would be to change the Number of Gallery Columns on the Configuration Tab from Automatic to any column count.
Or you can create a plugin that has a filter to stop this conflict.
To use the plugin, just add the following code to a new file at wp-content/plugins/envira-enfold-automatic.php
.
<?php /** * Plugin Name: Envira Gallery - Envira Enfold Conflict * Plugin URI: https://enviragallery.com * Version: 1.0 * Author: Envira Gallery Team * Author URI: https://enviragallery.com * Description: Resolves conflict with Enfold and Automatic Gallery */ add_filter('envira_gallery_output_before_image', 'enfold_envira_gallery_output_before_image', 10, 5); function enfold_envira_gallery_output_before_image( $output, $id, $item, $data, $i ) { $output = str_replace('envira-gallery-link', 'envira-gallery-link noHover', $output); return $output; }
If you’re unsure how to create a plugin file, follow these steps below:
envira-enfold-automatic.php
Your next step is to activate the plugin you just uploaded. Simply navigate to the Plugins from within your WordPress dashboard and activate the Envira Gallery – Envira Enfold Conflict plugin.
And that’s it, you’re all done! Would you like to try some more cool things with Envira? Check out our tutorial on How to style the tags filter using Envira Gallery and the Tags Addon.