WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] [Plugin: WordPress SEO] Yoast SEO and Qtranslate (35 posts)

  1. redlinepc
    Member
    Posted 2 years ago #

    Hi, im using qtranslate and Yoast SEO in http://www.redlinepctech.com, but i can define a SEO Title and Meta Description for each language, is there any solution?

    Is Yoast SEO the best SEO plugin for working with qtranslate multilanguage plugin?

    Thanks.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. redlinepc
    Member
    Posted 2 years ago #

    any help?

  3. redlinepc
    Member
    Posted 2 years ago #

    some help please?

  4. indiastarker
    Member
    Posted 2 years ago #

    I have the same question!
    I see WPML is mentioned in the release notes:

    0.2.3.4
    Added WPML config file, so you can SEO in multiple languages.

    on http://wordpress.org/extend/plugins/wordpress-seo/changelog/

    but haven't found it anywhere yet.

  5. redlinepc
    Member
    Posted 2 years ago #

    Looks like yoast dont work very good with qtranslate.

    I'm starting to think that the best is create a directory with another wordpress installation for every new language....

  6. indiastarker
    Member
    Posted 2 years ago #

    What's this about:

    We're using qTranslate and it seems possible to use short tags to use different titles and descriptions for different languages. This works for us:
    [:en]English Title [:se]Svensk titel
    qTranslate then picks the correct title and description based on the language used in the frontend by the visitor.

    http://semperfiwebdesign.com/forum/all-in-one-seo-pack-troubleshooting/multilingual-seo/#

  7. indiastarker
    Member
    Posted 2 years ago #

    Better yet: Try using the variables, like %%title%% for a title and %%excerpt%% for a meta description.

  8. redlinepc
    Member
    Posted 2 years ago #

    i already use that, but when i insert for example a description on the article on Yoast SEO, this description only became in the main language, the secundary languge dont have anything defined.

    I tested All in One SEO Pack and it works for all the languages, but its only one description and keywords to all the languages, for me its no big problem beacause i only have 2 languages, but with 3 or 4 languages could be a problem...

  9. indiastarker
    Member
    Posted 2 years ago #

    Ah. Sorry I just realised we have different language tools installed. I am using the paid version of WPML (not qTranslate) and when I use %%extract%% (for example) for the meta description, the language changes like it should.

  10. redlinepc
    Member
    Posted 2 years ago #

    indiastarker, thats great, but the WPML is payed, and i want a free plugin, so i started with qtranslate, at this point its no turning back, but if it would be now i maybe buyed a wpml account...

  11. karl19
    Member
    Posted 2 years ago #

    For the All in one SEO plugin, while using qTranslate, you can add different meta content like this:

    [:en]English Title [:se]Swedish Title

    This should get parsed correctly when the page is shown.

    Someone posted a hack for WordPress SEO and qTranslate, but I'm not sure whether Yoast updated the plugin to allow for this, I've not tried it myself.

  12. redlinepc
    Member
    Posted 2 years ago #

    I checked and now i reciving much google traffic, All in One SEO Pack is better for usign with qtranslate.

  13. solala
    Member
    Posted 2 years ago #

    I've just posted the solution working with WP 3.2.1 and WordPress SEO by Yoast (1.0.3) here:
    Multilingual META tags

  14. JKNN
    Member
    Posted 2 years ago #

    solala, please check http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=1301&start=10#p11353

    is the method still working? and how do I do it?

  15. JKNN
    Member
    Posted 2 years ago #

    How can I have WordPress SEO but keep different titles/descriptions for each language version of each page?

  16. radarred
    Member
    Posted 2 years ago #

    How can I edit SEO by yoast so it does not conflict with wp commerce shopping cart? Looks like it does not allow after loading cart to continue shopping or checkout...

  17. redlinepc
    Member
    Posted 2 years ago #

    My personal opinion: Dont use Qtranslate, it gives too much problems... its better to have 1 wordpress instalation for each language...

  18. JKNN
    Member
    Posted 2 years ago #

    radarred: Please open a new thread for that subject - or search for it.

    redlinepc: 1 installation for each language gives problems too - for example I need to keep tracking of 3 different booking systems then. Not to mention the tripled administrative work when editing stuff.

    Bottom line is that I just need a small fix like the one mentioned here to work with the current release of WordPress SEO by Yoast.

  19. solala
    Member
    Posted 2 years ago #

    JKNN:
    My fix you have linked to is not working anymore with the latest Yoast version.

    However:
    The trick of the whole hack was not to use the mentioned meta tags of Yoast, but the ones from Qtanslate meta plugin.
    Try to leave the respective fields of Yoast blank.
    It still works for me, I've just double checked it.

    My versions:
    SEO Yoast: 1.2.5
    qTransl Meta: 1.0.2

  20. JKNN
    Member
    Posted 2 years ago #

    Hello solala. Thank you for the answer. I am, however, going to need some more help to fix this.

    I have just installed WordPress SEO by Yoast, everything is default. When I leave the fields blank on a page in wordpress at the bottom under WordPress SEO and then enter the wanted titles in qtranslate meta, it does not work. Tested on this page: http://brusaaudlejning.dk/huset/. I am pretty sure that some "title template" from yoast seo overrules.

    Are there other fields in WordPress SEO by Yoast that I have to leave blank to make the qtranslate meta overrule it for titles and descriptions?

  21. solala
    Member
    Posted 2 years ago #

    radarred:
    I am successfully using:
    - Yoast SEO
    - qTransl Meta
    - WordPress shop germany WPSG

    No problems...

  22. JKNN
    Member
    Posted 2 years ago #

    I have tried your method without success :( I have settings shown below for pages. It works fine with the wordpress seo box not showing on pages. Then I have entered seperate titles for two pages in qTranslate META box on bottom of two pages, but still.. some template from wordpress seo overrules as well as I can see. Tested on the following pages: http://brusaaudlejning.dk/huset and http://brusaaudlejning.dk/en/rideferie/

    http://i.imgur.com/YqtSJ.png

    What can I do, you think? I am desperate to fix this :(

  23. sfradel
    Member
    Posted 2 years ago #

    Guys try this in your functions.php with the latest version of WordPress SEO

    // 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);
  24. SugarHillWorks
    Member
    Posted 2 years ago #

    sfradel, I love you!

  25. perqa
    Member
    Posted 2 years ago #

    Yes, I can confirm that sfradel's solution works really well! Thank you!

    Naturally, if you enter multiple languages in Yoast fields that are limited by number of characters, you will get some warnings. But just ignore them. The limits are not applied when you save the data, so the full strings will be in the source code anyway (as long as each language stays under the limit)

    Example usage:
    Meta Description:
    <!--:en-->Cross-platform mobile apps and IT consulting. Mobility solutions.<!--:--><!--:sv-->Mobilappar och IT-konsult. Mobila lösningar. kdfjhskdfjhksfhskfjhskjfhksjfhdsfsdfssdffdssdj 1234567890<!--:-->

    You get the following warning in the SEO admin:

    The meta description will be limited to 156 chars, -11 chars left.

    However, the full text strings are printed on the web site in each language.

  26. KOKON
    Member
    Posted 2 years ago #

    sfradel solution works for wpseo_metadesc
    but not for wpseo_title
    wp 3.4.1 WordPress SEO 1.2.7

    p.s.: it looks like wpseo_title is already striptagged before suggested filter is applied

  27. sfradel
    Member
    Posted 2 years ago #

    KOKON in the admin part the metabox uses JavaScript for the title parsing but in my theme it works ok

  28. KOKON
    Member
    Posted 2 years ago #

    here is the place your filter is applied:
    ./wp-content/plugins/wordpress-seo/frontend/class-frontend.php

    function title( $title, $sepinput = '-', $seplocation = '' ) {
    ..
    ..
        //var_dump($title);
        return esc_html( strip_tags( stripslashes( apply_filters('wpseo_title', $title ) ) ) );
    }

    my var_dump outputs $title with already stripped qTranslate tags

  29. creamille
    Member
    Posted 2 years ago #

    Thanks sfradel for your fix! Is it normal that the Snippet Preview in the admin doesn't seem to take into account the qtranslate shortcode?

    Thanks in advance!

  30. sfradel
    Member
    Posted 2 years ago #

    Τhe Snippet Preview uses javascript for the parsing of the title and description. So the shortcode is not taken into account, this needs modification of the plugin core wp-seo-metabox.js file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic