nexus666101
Forum Replies Created
-
.translatepress-en_US .lang_en a,
.translatepress-fr_FR .lang_en a,
.translatepress-de_DE .lang_en a{
color:#1eb81f !important;
}where .translatepress-en US is the language defined in the body class and .lang-en is the custom language class you define in your menu item.
- This reply was modified 6 years, 7 months ago by nexus666101.
Okay i found the solution, i had to add a custom class to my languges menu items and using your body.”langname” it worked like a charm. I can provide the code if necessary.
Cheers
<li id=”nav-menu-item-29091″ class=”trp-language-switcher-container menu-item menu-item-type-post_type menu-item-object-language_switcher narrow”><span data-no-translation=””><span class=”trp-ls-language-name”>French</span></span>
I mean all 3 languages buttons have the same css classes, how do it light up the specific one?
Hey, thank you very much for the answer. I do have it in the menu but how do i know body.translatepress-en_US is active?
Thx