Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #748375

    Hello,

    how i can insert custom fonts ttf to enfold theme. Also, i want to use them with CSS3

    @font-face {
    font-family: myFirstFont;
    src: url(sample.ttf);
    }

    Which folder i will choose to put the custom fonts ttf on Enfold theme and to use CSS3 like above(@font-face…)?

    Thank you

    #748405
    #748503

    It doesn’t help me. Don’t complete font generation. Refer that message. <Web fonts from other distributors cannot be regenerated.>
    Other way to import custom fonts .ttf, .eof, .woff in the WordPress?

    Thank you

    #748967

    Hi,

    Using CSS is no different in WordPress than in web development in general, you can put the font anywhere on your server, just make sure to include the correct URL when importing the font in your CSS.

    Best regards,
    Rikard

    #749248

    Hello,

    i upload custom font (ttf) in my control panel path.
    mydomainname.nn/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/myfont.ttf

    I use CSS3 below code:
    @font-face {
    font-family: myfont;
    src: url(http://mydomainname.nn/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/myfont.ttf);
    }

    Also i set a class in a paragraph e.g. <p class=”text”>This is a paragraph</p>
    And Css
    .text{
    font-family: myfont !important;
    }

    What’s going on wrong? Why don’t change the paragraph font family?

    I have used and other custom paragraph e.g. https://www.fontsquirrel.com/fonts and have the same problem.

    Thank you

    #749740

    Hi,

    I’m not sure unfortunately, did you verify that the font URL actually contains the font? If that is working then we would have to look at the actual element you are applying this to to determine what is going wrong.

    Best regards,
    Rikard

    #749913

    Hello Rikard,

    now i have create a folder (fonts) inside wp-content. In folder fonts i have upload three custom fonts.

    In css style i use:
    ————————-

    @font-face {
    font-family: font1;
    src: url(http://mywebsite.nn/wp-content/fonts/font1.ttf);
    }
    @font-face {
    font-family: font2;
    src: url(http://mywebsite.nn/wp-content/fonts/font2.ttf);
    }
    @font-face {
    font-family: font3;
    src: url(http://mywebsite.nn/wp-content/fonts/font3.ttf);
    }

    Also i set a class in a paragraph e.g. <p class=”text”>This is a paragraph</p>
    And Css
    .text{
    font-family: myfont !important;
    }

    The fonts doesn’t work. Why?
    Take a look.

    Thank you

    #751632

    Hi,

    Please refer to this post https://kriesi.at/support/topic/own-custom-font/#post-733898

    You may not see the changes until the cached files are cleared in your browser.

    Please try to hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload” and review the site again.

    Best regards,
    Vinay

    #752867

    ok. thank you

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