New Landing How can we help? Themeforest Theme Support Neighborhood How to add your own font?

Viewing 15 posts - 1 through 15 (of 28 total)
  • #146565
    dhpl
    Member
    Post count: 31

    Hello, I would like to know how do I add a font that I have download online into the website

    #146567
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please check this documentation http://neighborhood.swiftideas.net/documentation/#font-options. Hope that shoud help to you.
    Thanks
    Mohammad

    #146574
    dhpl
    Member
    Post count: 31

    I tried this before already. But the font I wanted is not inside the list. I want to add my own font, is there any way I can do that?

    #146576
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Which font do you want to add ? In Which list do you want to add? Where did you get font?
    Thanks
    Mohammad

    #146580
    dhpl
    Member
    Post count: 31

    I want to add Kingthings foundation font I got it from font squirrel.
    http://www.fontsquirrel.com/fonts/Kingthings-Foundation-

    #146693
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please follow these article http://premium.wpmudev.org/blog/adding-custom-fonts-to-wordpress-with-font-face-and-css/. Hope that should work fine.
    Thanks
    Mohammad

    #152921
    dhpl
    Member
    Post count: 31

    So I just upload the font and add these code into the custom CSS?

    #152955
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Yes, you are right.
    Thanks
    Mohammad

    #152981
    dhpl
    Member
    Post count: 31

    Hi, I have followed the steps, but the font I want didn’t appear.

    #152983
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please explain the steps in detail as you taken to use custom fonts.
    Thanks
    Mohammad

    #152988
    dhpl
    Member
    Post count: 31

    1. I upload the fonts to my server
    2. I copy and paste the CSS codes from the website and put it in my Custom CSS and did the changes.
    The code I have added is
    @font-face{
    font-family:kingThings;
    src:url(‘http://vulgarsg.com/home/vulgarsg/public_html/wp-content/themes/neighborhood/css/font/Kingthings_Foundation.ttf’) format (“truetype”);
    }
    3. After that I add this code to my custom CSS
    body, h1, h2, h3, h4, h5, h6, a {font-family:kingThings;}

    #152995
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You’ll need to add !important to your css to override the theme’s font options

    – Kyle

    #153232
    dhpl
    Member
    Post count: 31

    Hi, may I know where do I have to add it?
    I add it here but the font still didn’t change.
    body, h1, h2, h3, h4, h5, h6, a {font-family:kingThings !important;}

    #153248
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Your fonts path are wrong.

    Find this code:-
    @font-face{
    font-family:kingThings;
    src:url(‘http://vulgarsg.com/home/vulgarsg/public_html/wp-content/themes/neighborhood/css/font/Kingthings_Foundation.ttf’) format (“truetype”);
    }
    
    Change to :-
    @font-face{
    font-family:kingThings;
    src:url(‘http://vulgarsg.com/wp-content/themes/neighborhood/css/font/Kingthings_Foundation.ttf’) format (“truetype”);
    }

    I have removed home/vulgarsg/public_html from fonts path.

    Thanks
    Mohammad

    #153258
    dhpl
    Member
    Post count: 31

    I have updated the font path, but the fonts are still the same it is not changing

Viewing 15 posts - 1 through 15 (of 28 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register