Forums › Forums › Search & Filter Pro › Conflict on features with The Events Calendar plugin
- This topic has 8 replies, 4 voices, and was last updated 5 years ago by
Anonymous.
-
Anonymous(Private) April 2, 2020 at 10:43 am #238720
Hi,
I have some features blocked on The Events Calendar (date picker and filters) when I activate Search & Filter Pro plugin. I have no js error and can’t identify where the conflict is.
The website where I get the issue is : http://wordpress-60325.ami.beta-nd.com/formations/
The datepicker on month, filters on the left and the search bar shouldn’t be block.There is no override functions for both of those plugins and doing the same test on a basic theme is not resolving the problem.
Have you ever had this issue already ?
Best regards
Anonymous(Private) April 2, 2020 at 11:37 am #238725Both plugins seems to use a different datepicker so it makes a conflict.
Deregister the jquery-ui-datepicker enqueued by Search & filter pro on this page fix the issue but I think you could investigate to fix this issue.
As I’m not using both plugin on this page I simply did wp_deregister_script(‘jquery-ui-datepicker’) on this specific page.Anonymous(Private) April 29, 2020 at 4:47 pm #242029Hi,
I have exactly the same issue but I am not a developer and I don’t understand how to prevent the conflict. Could you be so nice and explain to me how to implement this workaround?
Like you I am not using both plugins on the same page.
I already have a child theme with a functions.php file.
Thanks very much!Ross Moderator(Private) May 1, 2020 at 9:32 am #242284Hi Nathalie
The above solution works if you are not using both on the same page – I can help clarify how to set that up.
Are you using Search & Filter date pickers on the same page as Events Calendar date pickers?
Thanks
Anonymous(Private) May 1, 2020 at 9:43 am #242288Hi Ross,
thanks for your quick reply.
I am not using Search and Filter pro on the same page and I don’t use your date picker at all (on any page), so I suppose that it could work for me.For the future: If preventig the conflict is complicated for the developers, it would be great if there were an option to deactivate your date picker on the whole website. I am using Search and filter pro on a few websites but until now I didn’t need a date filter.
Regards.
Ross Moderator(Private) May 4, 2020 at 3:12 pm #242517Hi Nathalie
You should be able to remove it by adding this line to
functions.php
of your child theme:function remove_date_picker(){ // remove the date picker wp_dequeue_script( 'jquery-ui-datepicker' ); } add_action( 'wp_enqueue_scripts', 'remove_date_picker', 11 );
To be honest, this is probably the second time this has come up – but I will look at optionally loading the datepicker.
Thanks
-
AuthorPosts