Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
Are you trying to use an Ajax pagination type for Envira’s Pagination Addon and having some trouble? If you’re using Ajax Pagiantion and JetPack’s Lazy Load option this tutorial will help walk you through resolving any conflicts between the two plugins.
To use Envira’s Ajax pagination and JetPack, just add the following code to a new file at wp-content/plugins/envira-ajax-pagination-jetpack.php
.
<?php /* * Plugin Name: Envira Gallery - Ajax Pagination JetPack * Plugin URI: https://enviragallery.com * Version: 1.0.0 * Author: Envira Gallery Team * Author URI: https://enviragallery.com * Description: Removed the filter JetPack uses that breaks the Ajax Pagination with Envira. */ add_filter('jetpack_enable_open_graph', '__return_false');
If you’re unsure how to create a plugin file, follow these steps below:
envira-ajax-pagination-jetpack.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 – Ajax Pagination with JetPack 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 Pagination Links.