If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
August 22, 2013 at 7:38 pm #28276
I found a thread elsewhere that showed how to add new Google Fonts to the options in functions.php and that works out well.
I was wondering where the best place to change the font stack as a whole would be though. We switched over to a serif font for headers, but in the font-stack, the alternative fonts are still Helvetica, and sans-serif. I didn’t want to just overwrite the header font stack in the child style-sheet if there was a better way.
If there a better filter to override or is editing the child style.css the best way?August 23, 2013 at 5:56 am #137087
I’m sure the filter is the best way to add fonts. You can edit includes > admin > register-admin-options.php:
$avia_elements = array( "name" => "Heading Font",
"slug" => "styling",
"desc" => "The Font heading utilizes google fonts and allows you to use a wide range of custom fonts for your headings",
"id" => "google_webfont",
"type" => "select",
"no_first" => true,
"class" => "av_2columns av_col_1",
"onchange" => "avia_add_google_font",
"std" => "Open Sans",
"subtype" => apply_filters('avf_google_heading_font', array('no custom font'=>'',
'Dancing Script'=>'Dancing Script',
'Droid Sans'=>'Droid Sans',
'Droid Serif'=>'Droid Serif',
'EB Garamond'=>'EB Garamond',
'Fjord One'=>'Fjord One',
'Josefin Sans' => 'Josefin Sans',
'Josefin Slab'=>'Josefin Slab',
'League Script'=>'League Script',
'Mate SC'=>'Mate SC',
'News Cycle'=>'News Cycle',
'Open Sans'=>'Open Sans:400,600',
'PT Sans'=>'PT Sans',
'Signika Negative'=>'Signika Negative',
'Terminal Dosis'=>'Terminal Dosis',
'Tenor Sans'=>'Tenor Sans',
'Varela Round'=>'Varela Round',
You can add or remove fonts.
IsmaelSeptember 12, 2013 at 10:08 am #137088
Hi there, I was looking at the same thing.
Cannot find register-admin-options.php
Where is that. I am acessing wp-include though FTPSeptember 12, 2013 at 3:33 pm #137089
The topic ‘Font Stack’ is closed to new replies.