Third-party code breaks the editor

Hi
I have a problem that I cannot solve on my own
I have to implement this code https://wiki.freepbx.org/display/FPG/Customizing+the+Web+CallBack+Form
to the pages of my site
after I do this, I can’t get into the editor
while the script itself works well
and the page is displayed correctly

please tell me how should I correct this code so that it does not conflict with the editor code

thanks

Hey Anton,

We’re sorry to hear that you’re having an issue with the third-party code. Regretfully, we do not offer support for third-party plugins and scripts so we can’t fix the code. Seeing the error in the screenshot, I can give you a tip though. Your code might not be compatible with WordPress. Try the solution in this article: https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/.

If that does not work, please contact the third-party developer to make the code work in our builder.

Please also note that not all JS codes will work with our builder. This is the reason why we block the preview of the third-party plugins we bundle because their JS code conflicts with our builder.

Thank you for understanding.

1 Like

Thank you for this tip!
This code helped me

    add_action( 'wp_enqueue_scripts', 'my_scripts_method' );
    function my_scripts_method() {
	wp_deregister_script( 'jquery-core' );
	wp_register_script( 'jquery-core', '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
	wp_enqueue_script( 'jquery' );
}

I put this code in /wp-content/themes/x-child/functions.php

I am not a programmer at all and very often it is difficult for me to understand the code
but I did it)
thanks again for your help

You’re welcome,

Happy holidays, Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.