• Hi,

    I’ve found the following code, just don’t know where to place in the header.php so that the language flags appear in the right upper corner. Also would it be possible to tweak the code so it shows flags in horizontal order?

    I am a total beginner. Please keep it in mind when you want to explain me how to place the flags in the right corner 😉
    I found some links related to the subject. But it’s a magic for me. I need someone who could explain it to me from the beginning.

    Thank you in advance! 🙂

    <?php
    global $q_config;
    if(is_404()) $url = get_option(‘home’); else $url = ”;
    echo ‘<ul id=”headerMenuSystem”>’;

    foreach(qtrans_getSortedLanguages() as $language)
    {
    $link = qtrans_convertURL(”, $language);

    if($_SERVER[“HTTPS”] == “on”)
    $link = preg_replace(‘#^http://#’,’https://&#8217;, $link);

    echo ‘<li class=”menu_item”><a href=”‘.$link.'”‘;
    echo ‘ hreflang=”‘.$language.'” title=”‘.$q_config[‘language_name’][$language].'”‘;
    echo ‘><span’;
    echo ‘>’.$q_config[‘language_name’][$language].'</span>’;
    }

    echo ”;
    ?>

The topic ‘Qtranslate’ is closed to new replies.