Forums › Forums › Search & Filter Pro › Search doesn't work
- This topic has 43 replies, 3 voices, and was last updated 9 years, 4 months ago by
Anonymous.
-
Anonymous(Private) November 28, 2016 at 8:10 pm #72702
Hi!
After hours of searching through support topics, I’m asking for help.
I have a site with vehicles, all defined as WooCommerce products and stored in product categories. Vehicle details are specified as metadata through ACF.I want to use S&F Pro as filter (not as a search form). I run S&F Pro 2.2.0 on WP 4.6
I’ve made a search form with the following items:
Taxonomy (product_cat) for selecting the category (I will hide this with css).
Post meta for brand, price and manufacturing year.
Button
When I’m changing the filter’s value, it stops working and got an overlay and js errors. If I hit the button it redirects me to the shop page with no filter selected.
I need to keep the current category when using filters. I was trying with shortcodes, but the same result.Trevor(Private) November 29, 2016 at 2:32 pm #72825One issue I can see with the
Left search formis that you have not given the name of the theme search template. TheUse a custom template for resultsis currently set at search.php (the plugin and WordPress default), but no such file exists in Divi. If you wish to useAs an Archivedisplay results method, you need a template file to enter here.Many users of Divi choose instead to use the Shortcode method, but that does mean that you need to customize the results.php template file and keep that new version in the child theme folder (in a sub-folder called
search-filter).Trevor(Private) November 29, 2016 at 5:21 pm #72913In answer to #1, no, because every theme works differently. In answer to #2, please read this part of our documentation:
The results.php file WILL need customizing, after you have ascertained that the search works OK and gives the right results. I can help you with that.
Trevor(Private) November 29, 2016 at 5:37 pm #72924This is because your theme, you or a plugin is loading both the current version of jQuery (1.12.4) and later on it also loads an old version, with this line of code:
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>In turn, WordPress will switch off jQuery functionality for security reasons. You need to find what is loading this code and remove it.
-
AuthorPosts