• Resolved wplove3268

    (@wplove3268)


    Certain layouts on my site break when translated from English to German. I’m wondering if it’s possible hook into the user’s selected language choice to dynamically add a language-specific css class. I want to create layout styles that change depending on the language selected.
    For example if German language was selected it would add a “german” class to the body tag. Then I could adapt my stylesheet to change styles for a div within body.german. (or a similar solution)

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

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

    (@edo888)

    Hi,

    It is available in our paid version. You can use CSS selectors like this html[lang="de"] div.example {...}

    Thanks! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Language-specific css class’ is closed to new replies.