Configure style based on content languages - Fluid Topics - Latest

Manage Languages in Fluid Topics

Category
Technical Notes
Audience
public
Version
Latest

It is possible to apply different styles based on the content's language. For example, modify the font or size for English content, or the color of titles for French content.

Perform the following steps to apply a particular style to content in a given language:

  1. Open the Content styles editor in Fluid Topics.
  2. Add parameters as in the following example:

    .content-locale-$LANG
    { color: blue; }
    
    .content-locale-$LANG
    { color: red; }
    
    .content-locale-$LANG
    { color: green; }
    

In the example above, $LANG must be the ISO 639-1 language designator in lowercase and an ISO 3166-1 region designator in uppercase of the content language.