This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
Hi,
I want to use “JF Flat” font for all texts, titles, menus, footer, header….etc. in the RTL pages.
Please let me know how to do that?
Thanks
Hello,
“JF Flat” is not Google font, you need download its files and upload to your site folder, then include it into the theme using @font-face (read here http://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/ , section “Adding Custom Fonts in WordPress Using CSS3 @font-face”).
Regards
Hi,
thanks for your answer.
Then I will use (El Messiri) google font, BUT I want to use this font only in the RTL pages from my website, please let me know how to do that?
Thanks
Hello,
You can add this code in functions.php file of child theme:
if ( is_rtl() ) {
add_action('wp_head', 'etheme_custom_font');
}
function etheme_custom_font() {
?> <link href="https://fonts.googleapis.com/css?family=El+Messiri" rel="stylesheet"> <?
}
and use this custom css:
.rtl * {
font-family: "El Messiri" !important;
}
Regards
You must be logged in to reply to this topic.Log in/Sign up