Ready to get started?Download WordPress


[resolved] qtranslate flags in header Twenty Eleven (3 posts)

  1. TimoElshof
    Posted 2 years ago #


    I want to add the qTranslate flags to the header of my Twenty Eleven theme website: http://www.timoelshof.nl

    I know I have to add this code to the header.php file: <div class="chooselang"> <?php echo qtrans_generateLanguageSelectCode('both'); ?>. The languages appear but I don't know how to move them to the right corner of my site, probably by adding some code to my CSS (in a child theme of course). Can somebody help me?

  2. Once you've added the code to your header, if you look at the html source code, you should be able to see the html generated by the function. There should be a class or an id that allows you to add style to it.

    Try floating it to the right and adding a width and height to it.

  3. TimoElshof
    Posted 2 years ago #

    Thank you for your swift reply. Unfortunately, I don't know how to access the html generated by the function? Can you help me with that as well?

Topic Closed

This topic has been closed to new replies.

About this Topic