Support » Plugin: FP Foundation Assistant » Conflicts with Caldera Forms

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fortpandemonium

    (@fortpandemonium)

    Hello

    Thank you for downloading the FP Foundation Assistant plugin.

    I’ve tested both plugins on a clean installation of WordPress and there are no errors with Foundation, the shortcodes or the forms created by Caldera.

    Can you please provide more information?

    Fort Pandemonium

    The caldera form editor loses all its functionality when foundation is installed, its a conflict in one of the javascript libraries from what I saw. So if you try and edit and existing form, you’ll see there in nothing but blank boxes there.

    Plugin Author fortpandemonium

    (@fortpandemonium)

    Thank you for the information. It turns out the conflict comes from Handlebars.js, not Foundation. It’s required on every page that loads the TinyMCE editor.

    To fix the issue:

    – In the Dashboard go to -> Plugins -> Editor
    – From the dropdown menu “Select plugin to edit” choose FP Foundation Assistant and click the Select button
    – From the list of ‘Plugin Files’ on the right choose fp-foundation-assistant/includes/class-fp-foundation-assistant.php
    – In the editor replace the following code on lines 601-604:

    
    $plugin_id = get_current_screen()->id;
    
    wp_register_script( $this->_token . '-hadnlebars-admin', esc_url( $this->assets_url ) . 'handlebars/handlebars-v4.0.5.js', array( 'jquery' ), '4.0.5', true );
    wp_enqueue_script( $this->_token . '-hadnlebars-admin' );
    

    with this:

    
    $plugin_id = get_current_screen()->id;
    $plugin_base = get_current_screen()->base;
    
    if ( $plugin_base == 'post') {
    	wp_register_script( $this->_token . '-hadnlebars-admin', esc_url( $this->assets_url ) . 'handlebars/handlebars-v4.0.5.js', array( 'jquery' ), '4.0.5', true );
    	wp_enqueue_script( $this->_token . '-hadnlebars-admin' );
    }
    

    I’ll release the fixed version next week.

    Please, tell me if this fixes the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflicts with Caldera Forms’ is closed to new replies.