In the font drop down there is just a limited amount of fonts to choose from. Is it possible to add the complete library of Google fonts? Or how can I add more fonts from Google Webfonts to this dropdown list?
How to add more Google Fonts?9 posts from 6 voices
you can add the font in propulsion\includes\admin\register-admin-options.php - search for following code and add your font to the list:
"subtype" => 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', 'Orbitron'=>'Orbitron', 'Oswald'=>'Oswald', 'Pacifico'=>'Pacifico', 'Poly'=>'Poly', 'Podkova'=>'Podkova', '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', ));
Please note that only Google Fonts are supported.
Is there another step missing? I did this, but the fonts aren't showing up in the list. I added:
'Bree Serif'=>'Bree Serif',
'IM Fell Double Pica SC'=>'IM Fell Double Pica SC',
have you refreshed your page/cleared your cache? It works fine for me, I added your piece of code alphabetically (merely for structure's sake) and it appears in the list.
You're right, it was a cache thing... I've cleared it, and all is working fine.
Glad that we could help :)
Another question to this topic: how can I change google fonts to load latin-extended set?Posted 3 months ago #
I answered your post. I will post it again here.
You can use a plugin like: http://wordpress.org/extend/plugins/wp-google-fonts/
I haven't tried this but Devin, one of the support member, suggested this plugin. I'm sure it'll work.
IsmaelPosted 3 months ago #
You must log in to post.