• Hey guys,

    at first i want to tell you how to run qtranslate in WP 3.9:

    after fixes (https://gist.github.com/warenhaus/10990386 and https://gist.github.com/akirk/10979790) as well as putting changing the
    the version in the qtranslate to:
    define(‘QT_SUPPORTED_WP_VERSION’, ‘3.9.1’);

    my qtranslate visual editor breaks again if i activate wordpress seo by yoast. For sure i made this working by using this code in my functions:

    // Enable qTranslate for WordPress SEO
    function qtranslate_filter($text){
    return __($text);
    }
    add_filter(‘wpseo_title’, ‘qtranslate_filter’, 10, 1);
    add_filter(‘wpseo_metadesc’, ‘qtranslate_filter’, 10, 1);
    add_filter(‘wpseo_metakey’, ‘qtranslate_filter’, 10, 1);
    add_filter( ‘wpseo_opengraph_title’, ‘qtranslate_filter’, 10, 1 );

    Does someone know how to fix qtranslate Visual Editor after activating SEO by Yoast?

    Thanks guys.
    And if you want to know how to make the meta-description work for yoast, remove:

    try{b=jQuery(“<div/>”).html(b).text();b=b.replace(/<\/?[^>]+>/gi,””);b=b.replace(/\[(.+?)\](.+?\[\/\\1\])?/g,””)}catch(a){}

    from the first line of “wp-seo-metabox.min.js”

    hope i also could help someone with this ??

    https://www.ads-software.com/plugins/qtranslate/

Viewing 1 replies (of 1 total)
  • Thread Starter David

    (@sechsdrei)

    EDIT: Sorry, not Yoast SEO is breaks it, CFS (Custom Field Suite) is doing it!

Viewing 1 replies (of 1 total)
  • The topic ‘COMPLETE FIX but: Yoast SEO breaks qtranslate Visual Editor again’ is closed to new replies.