Create Beautiful Responsive Photo & Video Galleries For Your Site in Minutes

Envira Gallery Documentation

Documentation, Reference Materials and Tutorials for Envira Gallery

Using JetPack and Ajax Pagination

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.

This tutorial is a bit more technical than our other docs. In order to use JetPack and Envira’s Ajax pagination, please review the steps below.

Creating the Plugin

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:

  1. Open a text file and make sure that it is a plain text document. You can use a plain text editor like Notepad or a code editor of your choice.
  2. Next, copy and paste the code shown below that matches the page builder you’re using into the file and save the file as envira-ajax-pagination-jetpack.php
  3. Once you’ve saved the file you can easily upload this directly to your /plugins directory on your server using FTP or you can right-click on the text document and zip (or compress).
  4. Finally, log in to your WordPress dashboard and go to Plugins » Add New » Upload Plugin and upload the .zip file you just created in the previous step.

Activate the Plugin

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.

Using Envira's Ajax pagination with JetPack

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.


The Best Drag and Drop WordPress Gallery Plugin

Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.

Enter the URL of your WordPress website to install

Please enable JavaScript in your browser to complete this form.

Upgrade to Envira Gallery Pro

Unlock even more powerful features designed to make your galleries even more beaituful.

Video Galleries

eCommerce

Social media Sharing

Adobe Lightroom

And much more!

Copyright © [#this year :%Y] Envira Gallery, LLC. Envira Gallery is a trademark of Envira Gallery, LLC.