Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #657184

    Hi,
    I would like to display the WPML language switcher flags on the left side of my main menu. Now they are displayed at the right side. Is there a chance to move them? I’m using a centered logo with the menu below.

    Tank you!

    • This topic was modified 8 years, 5 months ago by Steffen.
    #658188

    Hi,

    Open /config-wpml/config.php and look for:

    		                $items .= "
     	<li class='av-language-switch-item language_".$lang['language_code']." $currentlang'><a href='".$lang['url']."'>";
    		                $items .= "	<span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";
    		                $items .= "</a></li>
    ";
    

    Replace it by this:

    		                $n_items = "
     	<li class='av-language-switch-item language_".$lang['language_code']." $currentlang'><a href='".$lang['url']."'>";
    		                $n_items .= "	<span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";
    		                $n_items .= "</a></li>
    ";
    		                $items = $n_items.$items;
    

    Regards,
    Josue

    #659334

    Hi Josue,

    thank you very much. That code solved my problem!

    Regards,
    Steffen

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to move WPML language switcher flags’ is closed to new replies.