Skip Navigation

JS errors break editor with Porto theme

Won't fix

Topic Tags: Types plugin

Symptoms

The post editor does not function correctly and there are errors in the browser console when combining Toolset and the Porto theme.

Workaround

The issue occurs because the Porto theme disables a key Toolset script.

You can edit the theme’s functions file and remove these lines which disable the script:


if ( defined( 'WPB_VC_VERSION' ) && ( defined( 'TYPES_VERSION' ) || defined( 'WPV_VERSION' ) ) ) {
wp_dequeue_script( 'toolset-codemirror-script' );
wp_deregister_script( 'toolset-codemirror-script' );
}

Or you can add the following lines which will disable the Toolset buttons added to the tinyMCE editor:


add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
add_filter( 'wpv_filter_wpv_disable_conditional_output_quicktag', '__return_true' );

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>