• Resolved Adit MB

    (@aditmb)


    Hi guys,

    First of all, what an amazing theme! I need help to host google font locally, nothing seems to work atm. Things that I’ve done:

    • Installed custom fonts plugin. Still can’t see the font in style > typhography
    • Upload the fonts directly to ollie theme > assets > fonts, then add the fontface css in style > additional css

    I think if I use spectra builder, I might be able to get away with this, but I don’t really want to use that builder atm. Thanks for the attention

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Adit MB

    (@aditmb)

    Tried editing theme.json also didn’t work. I added these lines exactly below Inter

    {
    "fontFamily": "Quicksand, sans-serif",
    "name": "Quicksand",
    "slug": "quicksand",
    "fontFace": [
    {
    "fontDisplay": "block",
    "fontFamily": "Quicksand",
    "fontStretch": "normal",
    "fontStyle": "normal",
    "fontWeight": "400",
    "src": [
    "file:./assets/fonts/quicksand-v31-latin-regular.woff2"
    ]
    }
    ]
    },
    Thread Starter Adit MB

    (@aditmb)

    I tried using custom font plugin and other fse theme (neve and raft) and I can see the font. Idk what can I do to make it work with Ollie

    Theme Author Mike McAlister

    (@mmcalister)

    Hi there,

    You’ll probably want to check out the Create Block Theme plugin to help adding fonts to your theme. It has an interface that let’s you select and add the fonts. It’s similar to the font library that is coming to WordPress 6.5! Adding fonts will be so much easier soon.

    Also, keep in mind, if you’re editing the theme to add the fonts, you’ll probably want to do that in a child theme. You can download an Ollie child theme here.

    I haven’t tried the Google fonts plugins out there, but you’d need to make sure they work with block themes, which register fonts a little differently.

    Thread Starter Adit MB

    (@aditmb)

    @mmcalister thanks for the response. If I remember correctly, the plugin you mentioned already in my tried-list, but I’ll try it again later to re-check it.

    Thanks for the child theme link, also will check again soon. For now, I’m using spectra builder for the fonts and it worked good. Just, if I want to use another builder, I don’t want to have too many on my site.

    Yes, you’re correct about the block theme register fonts differently, because once I use let’s say quicksand and it’s shown in typhography, I can’t really change it, I thought it was caching problem at first, even change the debugging false to true in wpconfig. I guess plugin is the safest bet for non-coding user like me.

    Thread Starter Adit MB

    (@aditmb)

    @mmcalister thank you for the plugin recommendation. I did it again now with all caching off, and I can see the plugin inside the theme w/o creating a child theme.

    Thanks once again for the support, now I’m confident to use Ollie for upcoming project! I’ll make this thread as solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Local Google Font’ is closed to new replies.