Support » Plugin: Translate WP website - Weglot Translate » translation of texts in the “after: content” of a style or css

  • Resolved Fabri

    (@fabrisancho)


    example:

    .my-style:after {
    content: "address";
    }
    • This topic was modified 1 year, 4 months ago by Fabri.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Remy B

    (@remyb92)

    Hello,

    I see what you mean. Indeed text in content property is not translated by default. But you can use CSS to have different version. For instance :

    
    html[lang="en_US"] .my-style:after {
    content: "address";
    }
    html[lang="fr"] .my-style:after {
    content: "Adresse";
    }
    ....
    

    Let me know if that helps

    Fabri

    (@fabrisancho)

    Ok Remy thanks
    ;D

    Plugin Author Remy B

    (@remyb92)

    You’re welcome ! Have a nice day !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘translation of texts in the “after: content” of a style or css’ is closed to new replies.