[Resolved] Can’t find fond face in adding typography

Home Forums Support [Resolved] Can’t find fond face in adding typography

Home Forums Support Can’t find fond face in adding typography

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2351563
    Yannick

    Hello guys,

    I wanted to upload a local font. I have uploaded it by ftp to my folder. (http://www.milieumc.nl/wp-content/uploads/2022/09/LOVES.TTF)

    I added the font face

    @font-face {
    font-family: ‘test’;
    font-style: normal;
    font-weight: 400;
    src: url(‘http://www.milieumc.nl/wp-content/uploads/2022/09/LOVES.TTF’) format(‘truetype’), /* Safari, Android, iOS */

    but i can not find it when i add to the typography in customizer..

    how does this work?

    #2351892
    Ying
    Staff
    Customer Support

    Hi there,

    The font won’t appear in the dropdown list of the fonts.

    You can add the font name directly in the font manager at customizer > typography.
    https://www.screencast.com/t/wW5D9MUe4

    But make sure the link to the font file and the @font-face CSS are both correct.

    #2352305
    Yannick

    I did this, it doesn’t work. I think everything is correct. Can you please check in my back-end? I don’t know what i’m doing wrong.

    #2352723
    Ying
    Staff
    Customer Support

    Try change the CSS from:

    @font-face {
      font-family: 'test';
      src: url('http://www.milieumc.nl/wp-content/uploads/2022/09/LOVES-1.ttf') format('truetype'),
    }

    to

    @font-face {
      font-family: 'test';
      src: url('https://www.milieumc.nl/wp-content/uploads/2022/09/LOVES-1.ttf') format('truetype');
    }
    #2353042
    Yannick

    It worked, so dumb that i didn’t see that. Thanks for the good help ๐Ÿ™‚

    #2353602
    Ying
    Staff
    Customer Support

    You are welcome ๐Ÿ™‚

    Glad to help!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.