How to modify the appearance of the site title

Ever wondered how to adjust the font size, letter case (uppercase to lowercase and vice versa), and letter spacing? It's easy. Let's get started!

Change the site title font size

Go to WordPress > Appearance > Customize > Additional CSS. Copy the following code and paste it in the box:

.site-title, .site-title a, .site-title a:hover {
    font-size: 40px; }

@media only screen and (max-width: 480px) {
    .site-title, .site-title a, .site-title a:hover {
        font-size: 32px; }

Let's break this down this code a bit so you understand what's happening:

  1. The first section of this snippet will change the font size of the site title on any screen above 480px. This will include desktop computers, laptops, and tablets.
  2. The second section of this snippet will change the font size of the site title on any screen below 480px. This targets mobile phones. Generally, you want the font size on mobile to be a little smaller than it is on desktop computers.
Tip! Once you've added the code, you can see your changes live right inside the Customizer. To see how it looks on mobile, click the mobile phone icon at the bottom of your screen. It's on the right side of the Customizer panel.

Change the site title letter case

There are three options for letter case:

  • Uppercase (all letters in caps)
  • Lowercase (no letters capitalized)
  • None/Unset (will display whatever capitalization you do [or do not] have in your site title — this is most useful if you want capitalized letters in your site title)

Go to WordPress > Appearance > Customize > Additional CSS. Copy your desired letter case code and paste it in the box.

Uppercase

.site-title {
    text-transform: uppercase; }

Lowercase

.site-title {
    text-transform: lowercase; }

None/Unset

.site-title {
    text-transform: none; }

Change the site title letter spacing

Letter spacing, like it sounds, is the amount of space between each letter. Uppercase site titles typically have more letter spacing. If your theme originally had an uppercase site title and you're changing it to lowercase, you'll probably want to adjust the letter spacing too.

Go to WordPress > Appearance > Customize > Additional CSS. Copy the following code and paste it in the box:

.site-title {
    letter-spacing: 5px; }
The 5px value can be changed. Pop the code into your Customizer and then you can play around the px value and see how it looks. Between 1px and 10px is usually best.

Changing multiple aspects of the site title

This is optional. You can paste all the codes above separately if that's easiest for you. But when modifying the same selector (i.e. .site-title) with multiple CSS declarations (i.e. font-size: 40px), the correct way to do it is in a single rule-set, like this:

.site-title {
    font-size: 60px;
    text-transform: lowercase;
    letter-spacing: 2px; }

Again — optional! But if you're a code nerd like we are, you'll appreciate this. 😉