Support » Theme: Twenty Nineteen » font family change at site title

  • Hi all,

    It’s very easy problem, but I cannot fix yet…

    I tried to change font family at site title, but don’t.

    code is in customization of theme or style.css in child theme.
    (‘Bitter’ is google font)

    .site-title a {
    font-size:2rem;
    font-family: Bitter !important;
    }

    font-size is reflected normally, but not font family, off cource add link sentence in header.php .

    Please fix my code.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Have you properly enqueued the font from Google? If not, adding just the CSS won’t work, since the font isn’t being loaded by the browser.

    Instead of getting into that mess, try https://wordpress.org/plugins/olympus-google-fonts/ or https://wordpress.org/plugins/easy-google-fonts/

    Hi James,

    Thank you for your response.

    My original goal is “change font family of site title and body”.
    It’s my steps.

    1. add embed standard sentence like “<link href=”https://hogehoge&#8230;..” to header.php
    2. add font family in theme customization.

    And font family for body is all OK.
    But site title is not change.

    Next I use plugin “Google Fonts Typography” you recommended.
    It seems it’s ok the review of theme customization, but don’t fix it.

    Best Regards,

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Are you using any sort of caching plugin, or do you see a “Clear/Purge Cache” button in your Dashboard or admin bar? If so, would you please try clearing the cache?

    Note: You do not need to install a caching plugin at this point just to clear a cache you don’t have. If you don’t have a caching plugin or a way to clear a server-level cache, just say so. 🙂

    I don’t use a caching plugin, and don’t have a way to clear a server-level cache.

    And there is no mod_expire in .htaccess.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Is there any change if you do this?

    .site-title a {
    font-size:2rem;
    font-family: 'Bitter', serif !important;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.