Forums › Forums › Search & Filter Pro › Some issues using plugin backend
- This topic has 18 replies, 3 voices, and was last updated 9 years, 2 months ago by
Anonymous.
-
Anonymous(Private) December 22, 2016 at 1:15 pm #78246
Dear support
we installed the pro version of your plug in. Plugin is activated and licence keys is accepted. I could create a new search form but some things are not working:
- drag and drop for search form
- could not change between general, display results, etc…
Other functions do work. Any help for this? We are using ENFOLD Theme, actual wordpress realease, some other plugins, until now without problems. Installation is very new.
Thanks for your help Marc
Ross Moderator(Private) December 30, 2016 at 4:34 pm #79286Hi Christian
Ok so essentially what you have found is correct.
Caldera forms throws a JS error on our pages which seems to prevent any further scripts from loading on the page…
It might be an idea to contact the folk over at Caldera as they may be able to better debug their own scripts to help us find out exactly whats causing it.
Without having knowledge of how their scripts work, what I would do is the following:
1) Try to see if we can find the cause of the JS error itself. I would enable debugging (and script debugging), add the code at the snippet to wp-config: https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging
Let me know when that is done and hopefully we can see more info on the error2) Prevent Caldera from loading scripts on S&F pages. Again, I’m not too familiar with Caldera so it might be worth asking them what the name of the script is to remove it properly…
add_action('admin_enqueue_scripts', 'unload_admin_scripts'); function unload_admin_scripts() { wp_deregister_script("caldera-forms-script-name-here"); }Adding this code to your themes functions.php would in effect remove Caldera JS from all admin pages (which you don’t want to do), once we get the name (we need to replace “caldera-forms-script-name-here” with the correct name) I can then provide the exact code required so that Caldera is only removed on S&F pages.
Thanks
Anonymous(Private) January 18, 2017 at 7:15 am #83313Dear Ross
received now a answer from caldera. This is what they wrote:
wp_deregister_script(“caldera-forms–shortcode-insert”); should work. Make sure you run it on the admin_enqueue_scripts hook with a priority of 11 or higher.
Is this helping to solve the js issue with Search & Filter PRO? If you need admin access for our wordpress installation, please let me now. At the moment I did not change anything, code is not implemented to functions.php
As I understand you can send us the correct function.php code to remove caldera from all Search & Filter PRO admin pages? Will wait and put than the correct code to our functions.php
Best Regards Marc
Ross Moderator(Private) January 24, 2017 at 2:03 am #84812Hey Christian
Sorry for the delay, that info is clear, I’ll try to whip up a code snippet tomorrow (its late)
Best
Ross Moderator(Private) January 24, 2017 at 9:57 pm #85129Hey Christian,
This should work (add to your functions.php):
function remove_caldera_from_search_filter($hook) { $search_filter_admin_screens = array("edit-search-filter-widget", "search-filter-widget", "search-filter_page_search-filter-settings", "search-filter_page_search-filter-licence-settings", "search-filter_page_search-filter-system-status" ); $screen = get_current_screen(); if(in_array($screen->id, $search_filter_admin_screens)) {//we are on S&F admin so remove caldera JS to avoid conflict wp_deregister_script("caldera-forms–shortcode-insert"); } } add_action( 'admin_enqueue_scripts', 'remove_caldera_from_search_filter', 11 );If its not working, try changing the priority (set to
11above) as mentioned in the comment from Caldera, I set it to their recommendation which should work.Thanks
-
AuthorPosts