• Resolved skyhightech

    (@skyhightech)


    I am Developing website with Elementor Builder and using TranslatePress to translate the website. However the Client is not Satisfied with default Arabic Font, and wants it to match the Logo Font (Neo Sans Arabic). I have the font. But How do I change default font after uploading my own font

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    You can call the .translatepress class according to the desired language code. If you want to change the font of the Arabic language, then you will have .translatepress-ar.
    You can change the font by adding the CSS in Appearance –> Customize –> Additional CSS. For example let’s say I want to add a new font for Arabic, where exp1 is the selector of a section where I want to change the font (if you want to change it globally, of course, you don’t have to specify that particular selector):
    @import url('https://fonts.googleapis.com/css?family=Padauk&display=swap'); body.translatepress-ar .exp1 { font-family:"Padauk" important; }

    Thread Starter skyhightech

    (@skyhightech)

    Hi Alex,

    The font I want to use was not available in default fonts. So I uploaded it through elementor custom fonts option.

    Now I want to use this font for Arabic in full website. So How do I do that?

    Thanks

    Plugin Support Alex

    (@alexcozmoslabs)

    With CSS, basically. But now you don’t have to activate on a specific selector, but globally.

    body.translatepress-ar { 
    
    font-family:"Padauk" important; 
    
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Font for Arabic Language’ is closed to new replies.