Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Search & Filter Pro - Divi Theme & Ajax - Blog Module (Grid)
//this code does the re-layout work needed when using S&F with the blog module, and when S&F Ajax is enabled
(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
var grids = document.getElementsByClassName('et_pb_blog_grid');
salvattore['register_grid'](grids[0]);
});
}(jQuery));
@NeWXeno123

This comment has been minimized.

Copy link

commented May 30, 2019

Where do I have to add this code?

@NeWXeno123

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.