Q-translate language chooser sub menu closed by default

421 views Asked by At

I used q-translate on a Wordpress website and placed their "choose language" code in the menu. When you visit the website in its default language (Dutch), the sub menu with "the language overview" is closed, like this: screenshot 1

But when I choose an other language (and I guess when someone visit the website with an other language as default), the sub menu is open on default, like this: screenshot 2

I want my sub menu to be closed by default when an visitor with an other default language visits (or after an other language is chosen in the menu), like my default language. How can I do this? I'm not really good in php / js... I Googled my problem but could not find an direct answer (it looks like the plugin makers are not active anymore). I hope somebody can help me.

Thanks in advance!

1

There are 1 answers

2
user8230352 On

You could try to fix it by using CSS.

For example, the english language selected should have .qtranxs-lang-menu-en class, so try to add something like this:

.qtranxs-lang-menu-en ul.sub-menu {
display:none;
}