Put qtranslate in the header of the Site Wordpress



All you need to do in order to have the qTranslate widget in your pages header is to add this code to header.php:

1. This will create a text-only widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'text' ) ?>

2. This will create an image (flag) only widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'image' ) ?>

3. This will create a text and image widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'both' ) ?>

4.This will create a dropdown widget(an HTML select element with all available languages).
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'dropdown' ) ?>
Official wiyono blog