Forums › Forums › Search & Filter Pro › Sidebar filter problem
- This topic has 9 replies, 2 voices, and was last updated 10 years, 9 months ago by
Anonymous.
-
Ross Moderator(Private) January 8, 2016 at 6:20 pm #33710
This is not a Search & Filter issue.
You are loading jQuery twice in your code.
It would really be helpful rather than just posting problems if you can describe what you have done to your site before errors began, rather than just blaming the plugin.
Thanks
Ross Moderator(Private) January 8, 2016 at 6:50 pm #33713No worries, its just I’m guessing something else must have also changed in your code around the same time, to load jQuery twice?
Because a lot of JS doesn’t work when jQuery is loaded twice, depends on the load order of the scripts.
Have a good weekend! 🙂
Ross Moderator(Private) January 8, 2016 at 7:02 pm #33716You are loading jQuery twice.
I have no idea what could cause this, but this is usually some bad code or custom code, but occasionally comes from a plugin.
You’ll have to disable things and test on your site to find the issue.
Thanks
Anonymous(Private) January 8, 2016 at 7:07 pm #33718And one more question, Ross!
Does the code you gave me beforewp_register_script( 'search-filter-plugin-build', home_url("/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.js"), array('jquery', 'jquery-ui-datepicker'), '1.4.3' ); wp_localize_script('search-filter-plugin-build', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => '' )); wp_enqueue_script( 'jquery-ui-datepicker' ); wp_enqueue_script( 'search-filter-plugin-build' );can be the reason of this error?
Thank you -
AuthorPosts