• Great plugin!
    Still works with latest version of qTranslate-XT.

    In main.js just comment this out on line: 55, 56, 57:

    // var langSwitchWrap = cmb2qtranslate.createSetOfLSB();
    // add switch buttons before each multilanguage input
    // $field.closest(cmb2_field_wrapper_class).prepend(langSwitchWrap);

    Then in cmb2-qtranslate.php change the “enqueue_scripts” function to use that file, instead of the minified one in /dist/ folder:

    public function enqueue_scripts() {
    wp_enqueue_script( $this->get_plugin_slug() . ‘-plugin-script’, plugins_url( ‘assets/scripts/main.js’, __FILE__ ), array( ‘jquery’ ), self::VERSION );
    }

  • You must be logged in to reply to this review.