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 a different style on content depending on its language, such as modifying the font for English content and the size 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.