• Hi,

    I have a link to google fonts at the top of all my pages:

    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,700,300"

    Is there a way to have this apply to my posts too since I can’t include the HTML in the “post page”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fonts are applied through use of CSS.

    Some themes have a custom CSS option where you can select or enter in CSS rules. These rules are tied into elements on a web page and differ for each theme.

    When you selected the Source Sans Pro Google font, it gave you the standard reference link and the CSS rule to be applied to your HTML elements:

    font-family: 'Source Sans Pro', sans-serif;

    You need to identify the HTML class that represents a post and apply this CSS rule.

    You don’t need to use a plugin. That plugin isn’t going to be useful anyway because looking at its screenshot, it applies CSS rules globally to every HTML object pertaining to a document.

    If the document is the home page, search page, archive page, etc. its applies the fonts to all of them. According to the title of this problem, he just wants to apply it to posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google fonts to posts’ is closed to new replies.