Goto main content

help desk

How to modify the CSS or control the display of an element according to the language of the site in Extenso

I would like to modify the CSS of an element of my page but only for one of the languages ??of my site.

Asked on 2020-06-10 12:30:00

OFFICIAL ANSWER

If you ever want to manipulate a page in only one of the languages, for each Extenso page, there is a "lang" attribute on the <html> tag with the code of the language of the page that you can use in CSS.

Example:

html [lang = en] #elementID {

    background: pink;

}

This will cause the element with the ID "elementID" to have background: pink only in the French language of the page.

Answer by:
Etienne Carrier

Replied on: 2020-06-11 16:38:00