• Resolved maxqn

    (@maxqn)


    Hey! I have a question: I′m using GTranslate with two languages (german and english) shown by language codes. Right now, both language codes are shown in the menu, but I would love to show only the language wich is inactive right now. Is that possible? Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You can possibly do that via CSS, for example something like this will do the trick:

    html[lang="de-DE"] a[title="German"],
    html[lang="de"] a[title="German"],
    html[lang="en"] a[title="English"] {display: none;}
    

    I would also recommend to change this CSS from
    .fusion-main-menu>ul>li {padding-right:46px;} to
    .fusion-main-menu>ul>li a {padding-right:46px;}

    and remove this rule .fusion-main-menu>ul>li {padding-right:45px;}, this is specific to your theme and is inside wp-content/uploads/fusion-styles/20ccd1ce7b5632a6af8b4cd07f556101.min.css file.

    Hope it helps.

    Thanks! ??

    Hi,
    I want to do the same (show only one language code in the menu.)
    Can you please help? I didn’t get the above code. I am using 2 languages but I want to show only one inactive langaugae.

    • This reply was modified 2 years, 11 months ago by syedzaadii.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘show only one language code in menu’ is closed to new replies.