Created
March 23, 2017 18:27
-
-
Save rmorse/3e0e2b812cf0523436b6e88697fbd0c6 to your computer and use it in GitHub Desktop.
Search & Filter Pro - Divi Theme & Ajax - Blog Module (Grid)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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)); |
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
Update: this code is no longer required, this functionality has been added to our Divi integration plugin - https://searchandfilter.com/documentation/3rd-party/divi/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved here
https://support.searchandfilter.com/forums/topic/divi-and-sf/#post-127431