blog name link does not carry lang parameter if present

Viewing 3 posts - 1 through 3 (of 3 total)
  • #2418
    ivlivs
    Participant

    I am using qTranslate to make a multilingual blog and I noticed that the blog name link at top would redirect always to standard language, even if a different one has been selected. I am using this modified code in header.php for now:

    [code]<a href="<?php echo home_url().($_GET['lang']?'?lang='.$_GET['lang']:''); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>[/code]

    #2419
    Daniel Tara
    Keymaster

    I don’t know how qTranslate works. Try using WPML and leave the home link standard. It should work.

    #2420
    ivlivs
    Participant

    As far as I understood, qTranslate looks for $_GET[‘lang’], but it does not matter. I was just suggesting that if the parameter is defined, the link on the blog title should include it. With the code I posted it works.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.