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

NeWXeno123 commented May 30, 2019

Where do I have to add this code?

@NeWXeno123

This comment has been minimized.

@christiandegeus

This comment has been minimized.

Copy link

christiandegeus commented Oct 10, 2019

Hi, the link results in a 404. Do you have another link? And can you tell me what you were trying to solve? I’m using Divi and want to combine it with the search and filter plugin. It might help me on forehand.

Thanks in advance,
Chris

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.