• Resolved Antonio Areal

    (@corsair22)


    We select one language but the indication on site is other.

    If we select portuguese appears french, if we select french appears english and so on.

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

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

    (@edo888)

    Hi,

    I see the following CSS code in your main.css file:

    .language-selector a:not(:nth-child(2)) {
      opacity: 0.5 !important;
    }
    
    .language-selector a:nth-child(2) {
      opacity: 1 !important;
    }

    By default we apply gt-current-lang class to the selected language, which makes it bold by this CSS rule: .gt-current-lang {font-weight:bold}

    So if you want to customize the selector you better use gt-current-lang class CSS selector instead of nth-child which is obviously wrong.

    I believe you can use something like this instead:

    .glink {opacity:0.5}
    .gt-current-lang {opacity:1!important}

    Thanks! 🙂

    • This reply was modified 3 years, 1 month ago by edo888.
    Thread Starter Antonio Areal

    (@corsair22)

    We apply this solution but not solve the problem.
    Now if you select PT keep it highlight but others have the same problem.

    Plugin Author edo888

    (@edo888)

    Hi,

    Please remove all the customizations you have done and then apply the proposed solution.

    Currently I see that you still have wrong CSS customizations, for example:

    .translated-ltr .language-selector a:first-child {
        opacity: 1 !important;
    }

    Thanks! 🙂

    • This reply was modified 3 years ago by edo888.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wrong language indication.’ is closed to new replies.