Language switcher problem
-
Hi,
Is it possible to decide where you want the language switcher in your main navigation bar? I would like it on top of my main menu. Also, how can I remove the flags icons?
-
ok thank you, and how to remove flags?
See under FAQ – Can I change the look of Language Switcher Menu?
Ok yeah, where do I enter the informations?
Can I change the look of Language Switcher Menu?
The following query options can be typed in the field “URL” of “Language Menu” custom menu item, after “#qtransLangSw?”, separated by “&”, same way as options are provided on a query string:type=[LM|AL] – type of menu:
“LM” – Language Menu (default).
“AL” – Alternative Language: the top menu entry displays the first available language other than the current.
title=[none|Language|Current] – title text of the top item:“Language” – word “Language” translated to current language (default).
“none” – no title in the top of menu, flag only.
“Current” – displays current language name.
flags=[none|all|items] – the way to display language flags:“none” – no flag is shown in any item, including the top item.
“all” – all items show flag, including the top item.
“items” – only sub-items show corresponding flag, top item does not.
current=[shown|hidden] – whether to display the current language in the menu.For example, to show flag only in the top language menu item, enter #qtransLangSw?title=none, if in addition to this current language is not needed to be shown, enter #qtransLangSw?title=none¤t=hidden, and so on.
We understand that this is not a very user-friendly way to adjust the options, but it works, and we will provide a better in-editor interface to specify them in the future.
In your Theme CSS file play with:
.qtranxs_language_chooser li { display: none; } for example
ok I will try. Also, is it possible to make that my switcher only show the other language. For exemple, if I’m on the french website, I only see “english” on top right and on english website I only see “francais” to switch in one click. I only have two language, so I think it’s a good option.
Or maybe it’s in the php? I can’t see #qtransLangSw? or other options like type=[LM|AL] – type of menu:
I know that I’m asking a lot of thing (maybe it will help other too) Is it possible to remove language switcher from the admin panel?
#qtransLangSw? can be used in the Language Switcher widget under Appearance – Menus
Do you not use the widgets you’ll need to experiment with changes in the CSS file of your theme and php code.
Is it possible to remove language switcher from the admin panel?
why so?
I found : #qtransLangSwLM# in the language menu in my menu as an URL.
So I wrote something like : #qtransLangSwLM#&flags=none
Nothing changed.
try #qtransLangSw?flags=none
ok it work. What about what I was talking (only show other language)?
experiment with the all the differences.
ok got it alone with this full code (if it can help someone) :
Ok, this is Resolved now?
yes 🙂
The topic ‘Language switcher problem’ is closed to new replies.