Thread Starter
Arla
(@arla)
Hi davidb!
Thanks for your helpful reply. However I managed to solve my problem by using the wp_nav_menu_items filter:
https://github.com/arildm/langswitch-item/blob/master/langswitch-item.php
— Arild
Hello Arla,
i used your suggestion but wasn’t able to position my switcher like you did at he very top right corner.
Also, how did you add the flags before the language name?
Thank you in advance,
Paolo
Thread Starter
Arla
(@arla)
rosellipaolo,
The site I referred to has changed since the start of this thread. Another developer took over and I do not know how they implemented the language switcher that can be seen there now.
You can use <?php echo qtrans_generateLanguageSelectCode('text'); ?> to output a basic language switcher and use CSS to position it.
If you’re not happy with the HTML of that function you could define your own, using qtrans_getSortedLanguages(), qtrans_convertURL() and $q_config['language'].
— Arild