qTranslate language chooser on top, not in footer

Discussion in 'ColorWay WordPress Theme' started by wtbril, Oct 28, 2013.

Thread Status:
Not open for further replies.
  1. wtbril

    wtbril New Member

    Joined:
    Oct 3, 2013
    Messages:
    8
    Likes Received:
    0
    Hi,

    I have a question (has been asked before I believe); there is a way to include the qTranslate language chooser not as a widget but put into the template by adding this code <?php echo qtrans_generateLanguageSelectCode('both'); ?>. The thing is that a visitor now needs to scroll down to find out that more languages are supported. This is not really user friendly.

    So it does make a lot of sense to add this functionality somewhere at the top, preferably above or perhaps secondary in the menu bar (I suppose). How can I accomplish this?

    Many thanks in advance,

    Walter
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello Walter,

    You can add language flag at the top right of your front page.
    For this open "header.php" and add code as shown in the image.

    qtranslate-at-header.png

    After that Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    #qtranslate-chooser li {
    list-style-type: none;
    display: inline;
    margin-left: 10px;
    }
     
  3. wtbril

    wtbril New Member

    Joined:
    Oct 3, 2013
    Messages:
    8
    Likes Received:
    0
Thread Status:
Not open for further replies.

Share This Page