Tagged: Fonts
-
AuthorPosts
-
August 22, 2013 at 7:38 pm #28276
Hello,
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 #137087Hi,
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'=>'',
'Alice'=>'Alice',
'Allerta'=>'Allerta',
'Arvo'=>'Arvo',
'Antic'=>'Antic',
'Bangers'=>'Bangers',
'Bitter'=>'Bitter',
'Cabin'=>'Cabin',
'Cardo'=>'Cardo',
'Carme'=>'Carme',
'Coda'=>'Coda',
'Coustard'=>'Coustard',
'Gruppo'=>'Gruppo',
'Damion'=>'Damion',
'Dancing Script'=>'Dancing Script',
'Droid Sans'=>'Droid Sans',
'Droid Serif'=>'Droid Serif',
'EB Garamond'=>'EB Garamond',
'Fjord One'=>'Fjord One',
'Inconsolata'=>'Inconsolata',
'Josefin Sans' => 'Josefin Sans',
'Josefin Slab'=>'Josefin Slab',
'Kameron'=>'Kameron',
'Kreon'=>'Kreon',
'Lobster'=>'Lobster',
'League Script'=>'League Script',
'Mate SC'=>'Mate SC',
'Mako'=>'Mako',
'Merriweather'=>'Merriweather',
'Metrophobic'=>'Metrophobic',
'Molengo'=>'Molengo',
'Muli'=>'Muli',
'Nobile'=>'Nobile',
'News Cycle'=>'News Cycle',
'Open Sans'=>'Open Sans:400,600',
'Orbitron'=>'Orbitron',
'Oswald'=>'Oswald',
'Pacifico'=>'Pacifico',
'Poly'=>'Poly',
'Podkova'=>'Podkova',
'PT Sans'=>'PT Sans',
'Quattrocento'=>'Quattrocento',
'Questrial'=>'Questrial',
'Quicksand'=>'Quicksand',
'Raleway'=>'Raleway',
'Salsa'=>'Salsa',
'Sunshiney'=>'Sunshiney',
'Signika Negative'=>'Signika Negative',
'Tangerine'=>'Tangerine',
'Terminal Dosis'=>'Terminal Dosis',
'Tenor Sans'=>'Tenor Sans',
'Varela Round'=>'Varela Round',
'Yellowtail'=>'Yellowtail',
)));You can add or remove fonts.
Regards,
Ismael
September 12, 2013 at 10:08 am #137088Hi there, I was looking at the same thing.
Cannot find register-admin-options.php
Where is that. I am acessing wp-include though FTP
September 12, 2013 at 3:33 pm #137089 -
AuthorPosts
- The topic ‘Font Stack’ is closed to new replies.