Featured Wordpress Themes

show the native language name in the language switcher
  • In WPML options I have selected to include in the language switcher the native language name (the language name as it's written in that language), but longpage theme goes on showing the language name in display language (the language name as it's written in the currently displayed language)

    Could you help me to change it.. ? I'd like to show the native language name only.
    Thanks!

    For faster issue resolution please provide:
    URL to your website: http://rotaryclubbanyoles.org/
    Browser version:
  • 3 Comments sorted by
  • Solved:

    At line 19 of Templates/general-search-form-top.php says:

    lang{$lang['translated_name']}

    To get the native names, have to say:
    {$lang['native_name']}{$lang['native_name']}

    Hope it helps anybody else.
  • Solved:

    At line 19 of Templates/general-search-form-top.php says:


    <li><a href="{$lang['url']}" class="{if $lang['active'] == 1}active{/if}"><img src="{$lang['country_flag_url']}" alt="lang" />{$lang['translated_name']}</a></li>


    To get the native names, have to say:

    <li><a href="{$lang['url']}" class="{if $lang['active'] == 1}active{/if}"><img src="{$lang['country_flag_url']}" alt="{$lang['native_name']}" />{$lang['native_name']}</a></li>


    Hope it helps anybody else.
  • Hi, great if it works, thanks for your reply with solution:)
    I am sure that will be helpful for other users.
    Regards, Ivan.
    AIT-Themes.com
    ivo@ait-themes.com
    Use please email above if your Admin or FTP credentials are required by me. Always paste url of conversation into mail.
    interesting links: how to update theme ? | How to modify css? | Shortcodes