Forum Replies Created

Viewing 1 replies (of 1 total)
  • apoulakis

    (@apoulakis)

    You can only use the widget of qTranslate-X in your menu or sidebars or footers.
    now if you want to have to your header flags
    use this php code
    in this examples is for greek and english language..you have to change the English and Ελληνικά with images of flags or other words and the ?lang=en or ?lang=el with the languages that you prefer
    also you can use css code for decorate your options

    <php?
    $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $changelanguage=str_replace("?lang=en","?lang=el",$actual_link);
    <span><a href='http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]?lang=en'>English</a></span>
    <span><a href='$changelanguage'>Ελληνικά</a></span>
    ?>

    it works for me like a shortcode and i can place it every wher in my page

Viewing 1 replies (of 1 total)