How to restore WPBakery Page Builder frontend mode

Some of our themes disable the Frontend mode of WPBakery Page Builder. If you want to use it, you can restore it easily by adding this code part to functions.php of your child theme:

if ( ! function_exists( 'nk_themes_restore_vc_frontend_editor' ) ) :
    function nk_themes_restore_vc_frontend_editor() {
        if ( function_exists( 'vc_frontend_editor' ) ) {
            vc_frontend_editor()->disableInline( false );
        }
    }
    add_action( 'after_setup_theme', 'nk_themes_restore_vc_frontend_editor' );
endif;
Was this page helpful?