Title: Fonts localhost
Last modified: August 30, 2016

---

# Fonts localhost

 *  Resolved [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/)
 * Hello,
 * I would want to be able to use fonts without the use of plugin, which are in 
   a directory font.
 * Example: [http://localhost/wordpressgos/wp-content/themes/longevity/fonts/yanonekaffeesatz-regular-webfont.woff](http://localhost/wordpressgos/wp-content/themes/longevity/fonts/yanonekaffeesatz-regular-webfont.woff)
 * Could you indicate me what I have to modify
 * Thank you in advance
 * I am French and I use Reverso for the translation

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

 *  [WEN Solutions](https://wordpress.org/support/users/wen-solutions/)
 * (@wen-solutions)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789624)
 * So sorry for your given link. I can’t able to access your site because it is 
   in local server.
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789628)
 * Hello WEN,
 * Actually it is a local server. The path is there only to give the direction of
   the directory font in which is fonts.
 *  [WEN Solutions](https://wordpress.org/support/users/wen-solutions/)
 * (@wen-solutions)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789651)
 * Please try by follow this [link.](https://premium.wpmudev.org/blog/custom-google-fonts/)
   
   Thanks
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789669)
 * I go gone to visited the link
 * Thank you for your answer
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789686)
 * You can close the topic
 * Thank you
 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789736)
 * Good morning helogod….you posted “You can close the topic”, were you able to 
   solve your fonts issue?
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789766)
 * Hello,
 * No I did not solve my problem, but it is not grave, I see myself grateful(inescapable)
   to use a plugin what I did not want.
 * Thank you for your attention
 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789811)
 * Which font were you wanting to use and for what part of your web site page or
   content?
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789812)
 * Good morning,
 * I would like to use the fonts which(who) is in a directory font (/themes / longevity/
   fonts). “Ubuntu” for the body and “Yanone Kaffeesatz” for h1 h2 h3 h4 h5 h6
 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789814)
 * Sorry, I forgot to ask. You are wanting these fonts without using a plugin?
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789815)
 * Yes that’s it I do not want to use of plugin
 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789819)
 * Thanks for the information. I’m going to assume you are not using a child theme,
   so the next best way to add new fonts to a theme in the easiest way is how Google
   shows how this is done. If you are using a child theme, then I would show you
   a different way.
 * **Lets look at Ubuntu.**
 * If you go to the Ubuntu page at Google Fonts **[HERE ](https://www.google.com/fonts#UsePlace:use/Collection:Ubuntu)**
   and look at the bottom part of the page, you will see three tabs:
 * **Standard
    [@import](https://wordpress.org/support/users/import/) Javascript
 * You get three ways of adding the font to your website and each method gives you
   examples of how. But for the easiest method, you can try the [@import](https://wordpress.org/support/users/import/)
   method. This means in your stylesheet, you would put this at the top area just
   before your CSS starts:
 * [@import](https://wordpress.org/support/users/import/) url([https://fonts.googleapis.com/css?family=Ubuntu](https://fonts.googleapis.com/css?family=Ubuntu));
 * Again, if you are not using a child theme, then I recommend using a plugin that
   lets you create a custom stylesheet. This is a good plugin: Simple Custom CSS.
   You would then add that [@import](https://wordpress.org/support/users/import/)
   line to your custom stylesheet.
 * Then, to change your body font style to Ubuntu, then you can do this in your 
   custom stylesheet:
 * `body {font-family: Ubuntu, sans-serif;`
 * **Let’s look at Yanone Kaffeesatz**
 * You would do the exact same thing and put that in the same custom stylesheet.
   For your headings h1, h2, etc., you would then do this:
 *     ```
       h1, h2, h3, h4, h5, h6 {
       font-family: font-family: 'Yanone Kaffeesatz', sans-serif;
       }
       ```
   
 * Your font Yanone Kaffeesatz info about this is found **[HERE](https://www.google.com/fonts#UsePlace:use/Collection:Yanone+Kaffeesatz)**
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789822)
 * Very well I am going to make that you me recommended.
 * Thank you for your patience I inform you
 *  Thread Starter [helogod](https://wordpress.org/support/users/helogod/)
 * (@helogod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789879)
 * Hello
    I followed your instructions and everything works. Not really as I wanted
   but everything is OK. Thank you again for your help(assistant)
 *  Theme Author [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * (@shaped-pixels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789882)
 * You’re very welcome 🙂

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

The topic ‘Fonts localhost’ is closed to new replies.

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

 * 15 replies
 * 3 participants
 * Last reply from: [Shaped Pixels](https://wordpress.org/support/users/shaped-pixels/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/fonts-localhost/#post-6789882)
 * Status: resolved