Title: Adding additional fonts
Last modified: August 22, 2016

---

# Adding additional fonts

 *  Resolved [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/)
 * How do I add additional google fonts? I am using this snippet in my functions
   file. I tried adding an additional font line but that doesn’t work (breaks the
   site) I also tried duplicating the snippet with a different font which also breaks
   the site.
 * > add_action ( ‘wp_head’ , ‘my_google_font’);
   >  function my_google_font() { ?>
   > <link href=’[http://fonts.googleapis.com/css?family=Raleway&#8217](http://fonts.googleapis.com/css?family=Raleway&#8217);
   > rel=’stylesheet’ type=’text/css’> <?php }

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/#post-5377187)
 * I am sorry, that isn’t the code I used. This is. And it works for 1 font I have
   added, but can’t seem to add a 2nd. I don’t want to use a plugin as I don’t want
   to change everything.
 * > add_action( ‘wp_enqueue_scripts’, ‘my_google_font’ );
   >  function my_google_font(){
   > wp_enqueue_style( $handle = ‘my-google-font’, $src = ‘[http://fonts.googleapis.com/css?family=Raleway&#8217](http://fonts.googleapis.com/css?family=Raleway&#8217);,
   > $deps = array(), $ver = null, $media = null ); }
 *  Thread Starter [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/#post-5377204)
 * OK got it figured out so no help on this is needed. For anyone else however who
   wants to add fonts, add the addional fonts this way using the above code. Separate
   the fonts with a pipe and leave no spaces.
 * > ‘[http://fonts.googleapis.com/css?family=](http://fonts.googleapis.com/css?family=)**
   > Raleway**|**AdditionalFont**|**AdditionalFont**‘, $deps
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/#post-5377222)
 * Thanks for sharing solution 🙂
 *  Thread Starter [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/#post-5377251)
 * Your welcome.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding additional fonts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [font](https://wordpress.org/support/topic-tag/font/)

 * 4 replies
 * 2 participants
 * Last reply from: [David_G](https://wordpress.org/support/users/questas_admin/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-additional-fonts/#post-5377251)
 * Status: resolved