Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1361127

    i work with polylang and all translations works, but only one button not. look here:

    the button “Settings” were not translated….

    #1361174

    Hey Christian,

    Thank you for the inquiry.

    You may need to edit the privacy button and add a dedicated text for each language.

    Example:

    <span class="en">Settings</span><span class="de">Einstellungen</span>
    

    We can then use the following css code to show the appropriate text for the active language.

    .responsive #top .avia-cookie-consent-button-3 span {
        display: none;
    }
    
    html[lang="de-DE"] #top .avia-cookie-consent-button-3 .de {
        display: block;
    }
    
    html[lang="en-EN"] #top .avia-cookie-consent-button-3 .en {
        display: block;
    }
    

    If DE is active for example, the span tag with the class name de will display.

    Best regards,
    Ismael

    #1361189

    ok. Thanks! That works. You can close it.

    #1361192

    Hi caw67,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘translation of cookie buttons’ is closed to new replies.