-
Search Results
-
Hi,
I could not find a suitable answer on this so, i had to start a topic.
I am using TwentySeventeen and Elementor Pro, but i have an issue here.
Let me tell you some details in case i missed something from the documentation (https://searchandfilter.com/documentation/3rd-party/elementor/).First of all, i have added 3 rows:
-1st row: text block[searchandfilter id="904" action="filter_next_query"]-2nd row: text block `<script>(function ( $ ) {
“use strict”;// detects when the ajax request has finished and the content has been updated
// re-init the layout scripts from Elementor
$(document).on(“sf:ajaxfinish”, “.searchandfilter”, function(){
elementorFrontend.hooks.doAction(‘frontend/element_ready/posts.classic’, jQuery(‘.elementor-widget-posts’));
});}(jQuery));</script>`
This i have found here “https://support.searchandfilter.com/forums/topic/elementor-pro-results-are-not-filtered-ajax/” and solved the mess up of the thumbnails’ height after making any choice.
-3rd row: Here i have created two subrows in the same row, so:
–1st subrow: text block[searchandfilter id="904"]
–2nd subrow: “Posts” from Elementor Pro. In the “Posts” i have made no changes in “Query” and “Pagination”. Only some minor changes in the “Layout” of the “Content” and the option “Masonry” here is set to “Off” if it is of any use to you.To continue with, i have added:
1)”Custom Display Method” in “Display results”
2).elementor-widget-postsin “Ajax Container”
3).elementor-pagination ain “Pagination Selector”
4)http://localhost/theURL/in “Results URL”, where “theURL” is the same as the one i have added all the mentioned above in the rows.The thing is…
After making a choice, the “Posts” subrow is refreshed but nothing changes. The results are not filtered at all.
Do i have to make any changes in the “results.php” that i have located in the folder “search-filter” in my theme’s folder, or this is only useful for the “Using a shortcode” in the “Display results method”?
Also, i have deactivated all of my plugins, except for
“Custom Post Type UI”
“Elementor”
“Elementor Pro”
“Search & Filter Pro”Sorry for the huge message, but i think it might prove to be necessary.
Thanks in advance.