Support » Plugin: Translate WordPress with GTranslate » Change only current language appearance/css

  • Resolved eduardohernandez19

    (@eduardohernandez19)


    Hello,

    I am using language names on my Gtranslate widget, and I’m trying to differentiate the current language from the rest (well I’m only working with 2 languages). In other words if the selected language is Spanish the ES should look bold and the EN should have the regular font. I saw someone asked about this a couple of years ago, but I’m not to clear on where to add the code and if it still works with the latest version. This is the code that was used on the post I mention:

    jQuery(“a.glink[onclick=\”doGTranslate(‘en|”+GTranslateGetCurrentLang()+”‘);return false;\”]”)

    Thanks in advance.!

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

Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I think you broke the code during copy/paste. It should go into your theme footer.php to be fired on page load.

    If you are having issues with it, feel free to contact our live chat: https://gtranslate.io/#contact

    Thanks! 🙂

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.