• Hi
    I searched the web for hours but didn’t find a clear answer.
    I working with qTranslate Plus and Yoast and I would like to add translations for the “Focus Keywords”, “SEO Title” and “Meta Description”.

    I found the code below on the Yoast website.
    But what must I do after adding this to the functions.php?
    Which syntax or method do I use in the meta fields?

    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 );

    https://www.ads-software.com/plugins/wordpress-seo/

  • The topic ‘Yoast vs qTranslate Plus’ is closed to new replies.