Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Changing font family styles

Changing font family styles provides you with in-depth training on Web. Taught by Morten Rand-Hendri… Show More

WordPress 3: Building Child Themes

with Morten Rand-Hendriksen

Video: Changing font family styles

Changing font family styles provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes
Expand all | Collapse all
  1. 6m 59s
    1. Welcome
      1m 6s
    2. Using the exercise files
      1m 34s
    3. What you need to know before watching this course
      1m 29s
    4. Getting the right tools for theme creation
      2m 50s
  2. 17m 2s
    1. What is a WordPress child theme and when should you use it?
      2m 38s
    2. Picking a parent theme
      3m 55s
    3. Making sure you have the Twenty Twelve parent theme
      1m 50s
    4. Creating and activating a basic child theme
      4m 20s
    5. Importing parent theme styles
      4m 19s
  3. 16m 2s
    1. Using the developer tools
      3m 53s
    2. Modifying existing styles
      4m 24s
    3. Adding space between paragraphs
      4m 7s
    4. Changing font family styles
      3m 38s
  4. 31m 47s
    1. Understanding the WordPress template hierarchy
      3m 12s
    2. Modifying existing templates
      2m 33s
    3. Moving the header image
      4m 29s
    4. Adding Related Posts feature to posts
      6m 26s
    5. Creating custom page templates
      5m 43s
    6. Using conditional statements for customized effects
      5m 41s
    7. Creating custom header, footer, and sidebar templates
      3m 43s
  5. 17m 5s
    1. Understanding the different index pages and what they do
      4m 6s
    2. Adding author, date, and time information to the index loop
      7m 15s
    3. Changing the appearance of category index pages
      5m 44s
  6. 43m 5s
    1. Introducing functions.php
      3m 24s
    2. Overriding existing functions
      3m 23s
    3. Adding pagination to index pages
      5m 49s
    4. Adding to existing functions
      3m 21s
    5. Adding a new footer menu to Twenty Twelve
      6m 24s
    6. Adding a new widgetized area to pages
      4m 9s
    7. Adding static content to the sidebar
      7m 44s
    8. Replacing existing functions
      2m 36s
    9. Adding a Google font through a function
      6m 15s
  7. 10m 24s
    1. Adding new featured image sizes
      5m 41s
    2. Adding featured images to posts and pages
      4m 43s
  8. 31m 1s
    1. Adding a welcome message to the front page
      1m 22s
    2. Displaying page content in an index page
      7m 42s
    3. Hooking in a featured image
      4m 34s
    4. Making the welcome message responsive
      6m 27s
    5. Restricting content to the first page of the blog
      4m 22s
    6. Adding a jQuery function to show or hide the welcome message
      6m 34s
  9. 10m 23s
    1. Adding a custom favicon
      3m 58s
    2. Adding a custom screenshot
      2m 29s
    3. Adding footer information
      3m 56s
  10. 7m 14s
    1. What to do when a child theme crashes your website
      4m 38s
    2. Updating parent and child themes
      2m 36s

please wait ...
Changing font family styles
Video Duration: 3m 38s 3h 11m Intermediate Updated Nov 27, 2012


Changing font family styles provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

View Course Description

Create a child theme based on an existing parent theme in WordPress and change the functionality, presentation, or styling of your website. In this course, author Morten Rand-Hendriksen shows how to use the default WordPress theme, Twenty Twelve, as a basis for a new child theme and add custom menus; new headers, sidebars, and footers; and index pages with widgets and pagination to your site. The course also demonstrates how to add a responsive welcome message to your front page using PHP and jQuery, and how to edit the many templates found in a WordPress theme. Morten explains how to perform these changes using any code editor, the developer tools in the Chrome browser, and WordPress.

Topics include:
  • Picking a parent theme
  • Creating and activating a basic WordPress child theme
  • Using the developer tools
  • Changing the header image size
  • Using conditional statements for customized effects
  • Adding custom menus to the child theme and/or a template
  • Changing the default footer content
  • Adding featured images to posts
  • Changing the display of meta content (such as date, author, category, etc.)
  • Excluding categories from the front page with custom queries
  • Including functions from external files
  • Identifying and fixing common mistakes

Changing font family styles

A website is a representation of individuality. Whether it be your own or that of your company. One of the many factors that play into putting forward a consistent presence on the web is the use of fonts. In the past, web fonts were fairly restricted. But today thanks to modern browser technology, you have far greater options where fonts are concerned. The Twenty Twelve theme ships with a custom font hosted by Google Web fonts. Later in the course, we will look at how you can swap out this Google font for different Google web font, but for now, let's take a look at how you can change the style sheet in your child theme to use a standard font instead of the one that ships.

Looking at the Twenty Twelve theme, you can see it uses a Sans Serif font, and if we go behind the scenes to look at the style-sheets. So I'll go in here and go Inspect elements, to any elements, and go to Computed Style, you'll see down here under font family, the font that's being used is called Open Sans. It also as a fallback to Helvetica, Arial, and Sans Serif. This is what's called the font family. What happens here is the browser will try to use Open Sans, if Open Sans doesn't work, it'll use Helvetica. If Helvetica doesn't work, it'll use Arial and if Arial doesn't work it'll use any Sans Serif font.

What we want to do is make it change to this font family in such a way that we can use different fonts. To find the original style that kicks in here, instead of using the technique I showed you earlier, I'm simply going to go into the Computed Styles and click on this link that points to the original style in the style-sheet. It's right here. You see body.custom-font-enabled and then you have the font family: Open Sans, Helvetica, Arial, Sans Serif. Directly above it, you'll notice that the body style also has a font family defined.

This is because Twenty Twelve comes with two options, you can use a custom style, custom font enabled, or you can disable the custom font using code and then the original styles will kick in. Right now, we're going to make a change to the body.custom-font-enabled style. So I'll copy that's style out, go in to my child theme, and because this is a body style it should be high up in the hierarchy. So I'm going to paste that in directly under the import call. So here we have the original style the way it was, but now I want to change to font family over completely to another standard font family.

So I'm going to swap out all this code with Georgia, Times New Roman, Times, Serif. When I save the style-sheet now, and reload the web page in my browser, you will see that all the fonts on the entire page have been changed to Georgia because that's now the main font family. Now it's important to note that this doesn't necessarily work the exact same way on all themes. Many themes have very specific fonts assigned to different elements, and you may find that there's several different places where the font is defined.

In which case, you have to go in and find all the places where the font is defined in the original style-sheet and then overwrite it piece by piece, but in a well-written theme the font is defined once at the very top and you can simply overwrite it the way we did just know, by just typing in a new font family. Changing the font family of a website can make a huge difference in how the website appears in what message it communicates to the visitor. Choosing the right font family for your site is important, and no matter what people say, there is no such thing as a right or wrong font.

The font that fits with your message and communicates it well is the right font for your website.

Find answers to the most frequently asked questions about WordPress 3: Building Child Themes .

Expand all | Collapse all
please wait ...
Q: The 2010 version of this course no longer covers installing BitNami. Can you provide directions?
A: Instructions on how to install WordPress using BitNami can be found at Use the "Installer" option. 
It is pretty straight forward and almost impossible to mess up. also has a dedicated course on WAMP and MAMP (Installing Apache, MySQL, and PHP) that is relevant and you might find helpful.
Q:When looking to download PHP development tool at, as advised by Morten, but when accessing the site via this link, the screenshot in the movie is very different from what it takes you to on the website.
A: Eclipse has a very active developer cycle and updates quite frequently. The interface changes all the time. I recommend using Notepad++ (Windows) or TextWrangler (Mac) instead. They perform the same function but are far less cumbersome to deal with.
Q: This course was updated on 11/27/2012. What changed?
A: This course was heavily revised to reflect changes to the default WordPress parent theme, Twenty Twelve, and updates to WordPress's functionality. The entire course was re-recorded to reflect changes to the interface. Then we added new movies on text styling, the Related Posts feature, and the welcome message features. There are also two brand new chapters, "Modifying and Adding Functions" and "Working with Featured Images." We recommend that members who have seen the whole course start again from the beginning to get the most benefit from this update.





Don't show this message again
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed WordPress 3: Building Child Themes.

Return to your organization's learning portal to continue training, or close this page.


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

Join today and get unlimited access to the entire library of online learning video courses—and create as many playlists as you like.

Get started

Already a member?

Log in

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.