Forums Forums Search & Filter Pro Some issues using plugin backend

Viewing 10 posts - 1 through 10 (of 19 total)
  • Anonymous
    #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

    Anonymous
    #78264

    I found problem –> as I activate caldera forms the problem appears. WIth activated caldera forms nocdrag & drop and no change of register ( general, display results, posts ) Are there any known issues?

    Regards Marc

    Trevor
    #78284

    They may be using the same libraries with their form plugin. I will flag it for the developer to look at.

    Anonymous
    #78431

    Dear Trevor

    thank you for your fast response. We will wait for some updates from the developers.

    Regards Marc

    Ross Moderator
    #78490
    This reply has been marked as private.
    Anonymous
    #78863
    This reply has been marked as private.
    Ross Moderator
    #79286

    Hi 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 error

    2) 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
    #83313

    Dear 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
    #84812

    Hey Christian

    Sorry for the delay, that info is clear, I’ll try to whip up a code snippet tomorrow (its late)

    Best

    Ross Moderator
    #85129

    Hey 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 11 above) as mentioned in the comment from Caldera, I set it to their recommendation which should work.

    Thanks

Viewing 10 posts - 1 through 10 (of 19 total)