Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM wmpl custom language flags in top left widget area

This topic contains 1 reply, has 2 voices, and was last updated by  Anna 2 years, 11 months ago.

  • Author
  • #100555


    Hi Anna,
    wmpl option to put language flags in one line do not work for this theme, but on their site have a tutorial how to make it.
    So there is function:
    function language_selector_flags(){
    $languages = icl_get_languages(‘skip_missing=0&orderby=code’);
    foreach($languages as $l){
    if(!$l[‘active’]) echo ‘‘;
    echo ‘'.$l['language_code'].'‘;
    if(!$l[‘active’]) echo ‘
    which should be placed in function.php, the code which will show the flags:

    <div id=”flags_language_selector”><?php language_selector_flags(); ?></div >

    and the styling:

    #flags_language_selector img{
    border:1px solid #333;

    My question is where to put the code <div id=”flags_language_selector”><?php language_selector_flags(); ?></div > so to be in top left widget area.
    If it’s possible to put it before the top left widget and after the flags there is a place for widgets, it will be great, if not, only flags.

    Thanks’in advance.

  • #100609



    Thank you for your message.

    For us it works just fine. Please see the help for WPML:!/WPML

    If you do not manage this, please open a ticket in our ticket system

    Thank you,

You must be logged in to reply to this topic.