• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Riot Customs

Genesis WordPress Development, Maintenance & Support

  • About
  • Services
  • Blog
  • Shop
  • Contact

How to Install Web Fonts to Your WordPress site

Written by Katrina

web-fonts
Let’s talk about fonts, who doesn’t love fonts? They make our things pretty, but what about the web? Where do you use them? You’ll need a font for the body, the headline (title), header (site title) etc.

What do we get these said web fonts, well there are tons of sites like MyFonts, Font Squirrel, and Typekit to name a few.

Step 1: Download your files

So now that you’ve purchased the font you’ll be using on your site. You’ll need to download the fonts on your computer (if you have a mac it extracts the file for you) extract your file and place in a place you’ll remember. Make sure you’re using the license for the font properly also.

fontfiles

Usually, you’ll get about 4 files (.eot, .svg, .ttf, .woff) you’ll want to upload all of these into your theme.

Step 2: Uploading into your child theme

This step is pretty self-explanatory, all you do is create a folder in your theme and name it fonts. Then you’ll upload via FTP all your font files into that folder. Easy breezy.

fontfilestructure

Step 3 Include the font in your CSS stylesheet

Now it’s time for some code (mostly copy and paste) most web font providers will provide you with the css code you’ll need to install the font onto your theme. Here’s what that format looks like.


/*
 * Web Fonts from awesomefontplace.com
 *
 * Font copyright information, which you should 
 * never delete and should always be included 
 * in your CSS where ever you call the fonts files. 
 * Copyrights matter.
 *
 */

 @font-face {
    font-family: 'FontName';
    src: url('fonts/FontName.eot');
    src: url('fonts/FontName.eot?#iefix') format('embedded-opentype'),
        url('fonts/FontName-webfont.woff') format('woff'),
        url('fonts/FontName-webfont.ttf') format('truetype'),
        url('fonts/FontName-webfont.svg#FontName') format('svg');
    font-weight: normal;
    font-style: normal;
}

With your purchase font information, you’ll enter that into the stylesheet.css file.
fontfilecss
make sure to save your work.

Step 4: Font Declaration

Now that we’ve uploaded the web font in your child theme let’s start using it on the site itself. If you have the basics knowledge of HTML/CSS you’ll know that the code you’ll need to use will look something like this


.entry-title {
    color: #222;
    text-decoration: none;
    font-family: 'FontName', sans-serif;
}

Step 5: Check your work

Now let’s make sure the font is correctly installed. Head on over to your browser and turn on that firebug tool.
fontdeclare

There you have it, you installed a web font. Woot woot!
Get more lesson like this at the Espresso Workshop.

Previous Post
Next Post

Tutorials, WordPress 3 Comments

Reader Interactions

Comments

  1. Frank Waterman says

    November 1, 2016 at 6:29 am

    Hi Katrina,

    I’m a newb to web design. HTML, CSS, Linux, etc., etc. Your tutorial is very clearly written and will undoubtedly save me from much hate and discontent!

    I do have one criticism: While Firefox is an excellent browser, not everyone uses it. I am using Chrome myself as are many others. I don’t know if the firebug tool you reference in your final (and very important) step is cross platform compatible or not, but I shall find out. It looks to be a debugger (which would make sense).

    Still I appreciate your tutorial and thank you for posting it!

    Frank

    Reply
    • Katrina says

      November 1, 2016 at 11:04 am

      Hi Frank,

      Firebug is available for cross-browser and chrome, just take a look http://getfirebug.com/releases/lite/chrome/

      Thanks

      Reply

Trackbacks

  1. Add Custom Fonts To Your ConvertKit Form - Riot Customs says:
    January 26, 2017 at 9:25 am

    […] First, make sure to install your fonts onto your site and that they’re working. You can click here to learn how to install fonts on your […]

    Reply

Share Your Thoughts
Cancel reply

Your email address will not be published. Required fields are marked *

I accept the Privacy Policy

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Categories

  • Blogging
  • Business
  • Client Work
  • ConvertKit
  • Freebie
  • GenesisWP
  • Interact
  • Personal
  • Theme Releases
  • Theme Updates
  • Tools & Software
  • Tutorials
  • Web Design
  • WordPress

Master ConvertKit

A kick ass tech course on using the ConvertKit software. Want to start growing your list with the best email marketing software out there? What are you waiting for? Grab this course now!

Enroll Now!
Buy me a coffee
Newsletter

Tails from the Beast

Join our newsletter for tips on how to use the WordPress platforms. Advance your skills, and most importantly, puppy photos.

Please enter your name.
Please enter a valid email address.
Sign Me Up!

Thanks for subscribing! Please check your email for further instructions.

Something went wrong. Please check your entries and try again.

Development Information

  • How it Works
  • Trusted Partners
  • Portfolio
  • Client Portal

Explore

  • Resources
  • ConvertKit Services
  • Terms of Service
  • Privacy Policy
  • Disclamier

Summer is right around the corner. You have summer Summer is right around the corner. You have summer plans but does your WordPress site? 

Join the Tune Up today for all your WordPress maintenance needs. No more hassling about updates and when to update them. No worrying about malware, hacking or what tools to use for your site. 

Riot Customs is your partner in code. Link n bio.
Having a dedicated space has made life so much eas Having a dedicated space has made life so much easier. Especially since I’m still to this day dealing with migraines. Yes I still have them. 

How are you making work life easier for 2023?
Just here to show proof of life. Still dealing wit Just here to show proof of life. Still dealing with the migraine that I’ve had since July. 

I’ve been a busy bee working at ConvertKit doing migrations. Working on new digital products and keeping WordPress sites secure and up to date.

You can always sign up for my services, link in bio.
Late night work sessions. Something I’m still wo Late night work sessions. Something I’m still working on about my boundaries in my business.
The last cosmetic upgrade for now. Doing hardware The last cosmetic upgrade for now. Doing hardware upgrades next week. I swear.
Summer is here. It's vacation time for everyone ex Summer is here. It's vacation time for everyone except your website.​​​​​​​​
​​​​​​​​
Your website works for you 24/7 but that doesn't mean it doesn't need maintenance. Don't come back from vacation with tons of updates pinging on your dashboard. Get emails while you're enjoying time off that your site went down. ​​​​​​​​
​​​​​​​​
Let us take care of that for you. Join the tuneup today!​​​​​​​​
​​​​​​​​
Link in bio.

© 2009 - 2025 Riot Customs, LLC.

Powered by Flywheel & Beaver Builder.