• Resolved muditsushil

    (@muditsushil)


    Hi Team,

    Can you please let me know how can i write custom css for the selected language for example if you select Persian everything will start from right to left so images are not translated properly if i want to write css then i don’t know how to write & where to write. and that css only work on selected langugae not for english.

    Please help me with this. Many thanks in advance.

Viewing 1 replies (of 1 total)
  • Hello there,

    If you want to add custom CSS, you have to go to Appearance –> Customize –> Additional CSS.

    To make sure that your CSS will only be displayed on a certain language, you will have to use our custom classes.

    Here is an example of a CSS that changes the font size only on the French version of the site:

    body.translatepress-fr_FR { 
        font-size: 35px;
    }

    The class you will have to use is .translatepress-“language code”.

    The “language code” in this example is fr_FR (the code for French language).

    To find the code for a language that you are using go to: Settings -> TranslatePress -> General and here you will see all the languages that you are using and their respective code.

    Best regards,
    Cristian

Viewing 1 replies (of 1 total)

The topic ‘Changing language to persian custom css’ is closed to new replies.