Hello!
I added custon font by following code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic&subset=cyrillic';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic&subset=cyrillic';
return $fonts;
}
But every time I reload Enfold settings page, it sets the font setting to default – so my font disables: http://prntscr.com/2hihtm
Is there any way to make my font settings permanent?
Thank you!
Hi Vital!
Please go to wp-content\themes\enfold\includes\admin folder and open register-admin-options.php file and find
"std" => "Open Sans",
and change it to
"std" => "PT Sans",
It will change for heading font and if you would like to change for body text as well, find
"std" => "Helvetica-Neue,Helvetica-websave",
and change it to
"std" => "PT Sans",
Best regards,
Yigit
Thank you very much, Yigit! You saved my time=) Works perfec now.