Hi,
I’m developing an RTL site and as far as I’ve seen I can’t change to any other font style than the default one so far.
I’ve tried to use the WP font-face plugin, and worked step by step according to the instructions in “http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/” but I don’t understand where should I see the font and where should I choose it instead of the default one..
Please help with this feature as I would like to customize my site a little more.
Thanks!
Hi oravidor!
Can you please give us a link to the website? You can use this filter on functions.php to add google fonts:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
return $fonts;
}
Change “Source Sans Pro” with the font that you want to use.
Best regards,
Ismael
Hi Ismael,
I couldn’t find any string from the code you’ve sent , not in functions.php and not in functions-enfold.php …
Hey!
You need to add the code above on functions.php. Maybe you can refer to this link for fonts that can support hebrew: http://www.wazu.jp/gallery/Fonts_Hebrew.html
Use @fontface on custom.css to add the font. Refer to this link: http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
Best regards,
Ismael
Thanks!!
It worked