Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #206757

    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!

    #206869

    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

    #207061

    Thank you very much, Yigit! You saved my time=) Works perfec now.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Fix custon font settings’ is closed to new replies.