WordPress.org

Ready to get started?Download WordPress

Forums

Availability of Fonts (4 posts)

  1. JMDlugosz
    Member
    Posted 1 year ago #

    I just installed WordPress, and I have a few questions on themes and customization.

    Reading the documentation,

    Custom “Open Sans” Font

    To increase readable and attractiveness, Twenty Twelve features a gorgeous display font, Open Sans.

    I see that "Open Sans" is indeed listed in the font-family CSS property when the page loads. But where does this font come from? I certainly don't recall installing it. Does WP now come with some kind of web-font server system built in? Searching, I see addins for Google Web Fonts and similar services, but I didn't install such an add-in myself either. So is something like that available by default now, or hotwired into the theme, or what?

  2. Andrei Olsen
    Member
    Posted 1 year ago #

    Twenty Twelve loads CSS with font references from Google Web Fonts. See functions.php line 106 and bellow.

  3. JMDlugosz
    Member
    Posted 1 year ago #

    I see, thanks Andrei.

    So, how do I change the font? Since the string is hard-coded on line 136 I suppose I could just change "Open+Sans:⋯" to something else that is also on Google Fonts. But I really ought to do it in a child style somehow. Is there a more proper way to do this, or something else I should be looking into? It seems that Twenty-Twelve, although nicely designed and clean, has minimal customizability via the control panel in the dashboard.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Is there a more proper way to do this

    Yes. Do not edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

Topic Closed

This topic has been closed to new replies.

About this Topic