Site logo

Archived topic

Using a specific font for post titles

5 replies · Started by avani on August 16, 2018

Viewing posts 1–6 of 6

Hi, Im wanting to use either a local font or Typekit or a specific google font perhaps just for the post titles, I know post titles use H2 and H2 may also be used in the content. How can I target just the post titles?

thanks

Avani

Hi there,

On the archive page it would h2.entry-title. On Single page would be h1.entry-title

Let me know if this helps :)

thanks, could you provide the CSS to change the font, thanks

Should be something like this:

h1.entry-title {
    font-family: Helvetica;
    font-weight: normal;
    font-size: 20px;
    line-height: 1.3em;
}
h2.entry-title {
    font-family: Helvetica;
    font-weight: normal;
    font-size: 20px;
    line-height: 1.3em;
}

thank you!

No problem :)

This archived topic is closed to new replies.