AnonymousInactive
Hi guys, i am starting to implement S&F with elementor!!! :)) however i encounter a slight display error.
I think a video would definitely make my explanation better. Any kind souls can take a look at this video : @
https://photos.app.goo.gl/Ho94eQTxkAyUjoHq7
Apparently when S&F filter the results for me, there’s this Grey box appearing out of nowhere.
AnonymousInactive
Updates : i have added this shortcode > [searchandfilter id=”123456″ action=”filter_next_query”]
to the ‘Post WIdget’ of elementor pro > under Content > Query > Query ID
As shown here :
and instead of inputting [searchandfilter id=”934″ action=”filter_next_query”] to the shortcode widget, i have changed it to [searchandfilter id=”934″]
Results : right now, the post widget does not react to the search&filter plugin. When i click on categories of the S&F there was a ‘blink’ in the page but the result in the post-widget stays the same.
Just wondering if there’s anything i’m missing. Please advise. Much thanks would be appreciated!
AnonymousInactive
Hi guys,
Currently i am still facing an issue when i try integrating it with elementor page builder.
I went to search up the documentation and chance upon this site.
https://searchandfilter.com/documentation/3rd-party/elementor/
I ‘tried’ to follow the steps. But had abit of difficulty trying to understand this point
(Before the Posts Widget, tell S&F that it needs to filter the grid by adding a text area and adding our filter_next_query shortcode:
[searchandfilter id=”123456″ action=”filter_next_query”] )
What i did :
1) created a section with 2 columns.
2)add a post widget to the right
3)add a ‘shortcode’ widget to the left.
4)in the shortcode widget i pasted this short code as instructed. [searchandfilter id=”934″ action=”filter_next_query”] << also changed the searchandfilter id to match my search form
https://photos.app.goo.gl/hLSZJaG4VPtDd8eb9 an elaboration of how i execute the steps(it’s just a min short video no worries)
Results: nothing came out of the shortcode widget. However i went back to edit the shortcode widget to
[searchandfilter id=”934″] and remove away action=”filter_next_query” apparently some ‘things’ came out. But i know that i might have did something wrong.
Please kindly advise me what steps did i missed out or i should have done.
You appear to be editing the Home Page right now. Did you add a filter_next_query shortcode before the Elementor element that shows the results (possibly a Post grid), as detailed here:
https://searchandfilter.com/documentation/3rd-party/elementor/
Makes sure you are not using a different widget (you should be using the Posts widget), as I know there are extra widgets that come with some other plugins, that may not work.
Before I go digging, does that theme add the search field, or Elementor? I am wondering if the issue persists with/without Elementor?
AnonymousInactive
The only difference I can see is that the page that is not working has that sticky posts block physically between the search block and the posts block that we want to search. That is why I added an ID to the posts block that we want to search so we can target it for the results.
Both pages are using the Elementor Post Extras widget.
The issue will be with integrating to the Elementor content block. What is the difference in this regard between the two pages? Do they use different elements and/or settings?
Hi Lisa
Please take a look, the issue should now be fixed.
Our plugin required a small tweak to get everything playing nice.
I’ve also done a writeup of the required steps, should you wish to get Masonry working etc
https://searchandfilter.com/documentation/3rd-party/elementor/
Thanks
I figured it out. The script needed to relayout masonry is:
(function ( $ ) {
"use strict";
//detects when the ajax request has finished and the content has been updated
// - add scripts that apply to your results here
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
elementorFrontend.init();
//so load your lightbox or JS scripts here again
});
}(jQuery));
Also, in some circumstances, I noticed there were some pagination issues, these can be fixed by adding this to functions.php (replacing my-posts, with the slug of the page the posts widget is on):
//fix pagination issues in elementor when using posts widget with S&F
add_action('loop_start', 'elementor_post_widget_pagination_fix', 10);
function elementor_post_widget_pagination_fix($query)
{
if(is_page("my-posts")){
$sf_paged = 1;
if(isset($_GET['sf_paged'])){
$sf_paged = intval($_GET['sf_paged']);
}
set_query_var("paged", $sf_paged); //elementor uses get_query_var to get current page, so lets set it before its performeed
}
remove_action('loop_start', 'elementor_post_widget_pagination_fix', 10);
}
Thanks
AnonymousInactive
Hi there, we had Search and Filter Pro working great on our site, but now we are migrating to a new site where we are using Elementor. I found step-by-step instructions for integrating the the elementor Posts widget by searching “Elementor” in your support forums. I can’t find a standalone URL for these instructions, but you should see them here:
https://support.searchandfilter.com/forums/search/Elementor/
I believe I followed the instructions correctly, but my search and filter forms do not update the posts listing. Here’s my page:
https://newdemisto.wpengine.com/partners/
I see the same partner list no matter what I select in the search/filter form. Am I missing something in how to configure the Elementor post widget?