Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1234852

    PhilLeedsTrinity
    Participant

    Hi there,

    I’m trying to install some web fonts from MyFonts. I’ve got as far as installing the fonts in the wp-includes/fonts folder.

    Now I’m stuck 🙂

    The instructions are telling me to copy the CSS provided into the <head> and then add the font code to my CSS.

    Any help getting this set up would be amazing. Cheers!

    #1234853

    PhilLeedsTrinity
    Participant
    This reply has been marked as private.
    #1235260

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Please follow this thread to add your own font https://community.theme.co/forums/topic/how-do-i-change-font-in-theme-x/#post-248442

    Cheers!

    #1237736

    PhilLeedsTrinity
    Participant
    This reply has been marked as private.
    #1237867

    PhilLeedsTrinity
    Participant

    Still not having any joy with this. Could someone lend a helping hand, please?

    Thanks!

    #1237961

    Rupok
    Member

    Hi there,

    It seems you have added them right but the font not working as expected. Perhaps you need to revise that line and make sure it’s correct :

    @import url("//hello.myfonts.net/count/32619c");

    It seems blank if you open this on browser. You can use this with http://

    @import url("http://hello.myfonts.net/count/32619c");

    You can also try using the code within Child Theme‘s style.css.

    Cheers!

    #1238084

    PhilLeedsTrinity
    Participant

    Everything has been copied as per their instructions and I’ve doubled-checked everything is correct. Changing the .net to .com doesn’t do anything and I’ve copied the code in the Child Theme’s style.css.

    Should I copy this from the Custom CSS into the X Theme’s style.css? Any further help would be appreciated as it shouldn’t be this difficult to get a custom font added to the site.

    I’m surprised that it’s not included as an option to have in the Customiser font drop-down, but there you go. I can work with the css if it works!

    Cheers.

    #1238092

    Rupok
    Member

    Hi there,

    Yes it should be pretty straightforward and it works always. However I didn’t suggest to change the .net to .com instead suggested to add http:// before the link as the import was not working. You can try using this within Child Theme’s CSS. If the code is correct, it should work fine. Again, make sure http://hello.myfonts.net/count/32619c is correct because it’s blank if you open in browser.

    Hope this makes sense.