Custom font for logo title

  • Posted in : Readme
  • jkroeni7
    Participant

    Hi, I bought a web font and tried to include it in the theme. However, no matter where I put the CSS code, it is always overridden with the default font of the theme (even when using !important).

    How can I include my web font?

    Thanks!

    ahmetsali
    Keymaster

    Hi, you can try this css code;

    .site-title { font-family: "Your-Font-Name" !important; }
    

    if it doesn’t work please provide your url.

    jkroeni7
    Participant

    Hi, thanks, if I put it directly in the header.php it works, but only for the home page (in English):

    http://www.sung-kyu.net

    For any other page it doesn’t work, even though all the pages call the header first. My php skills are not good enough to understand what’s going on.

    Thanks!

    ahmetsali
    Keymaster

    Hi again, actually it works, but you need to update your font source url;

    <link rel="stylesheet" type="text/css" href="font/MyFontsWebfontsKit.css">  
    

    to

    <link rel="stylesheet" type="text/css" href="/font/MyFontsWebfontsKit.css">  
    
    jkroeni7
    Participant

    Ahh, silly me, that did it :-)

    Thank you very much!

    ahmetsali
    Keymaster

    you’re welcome, please don’t forget to rate the theme on themeforest if you liked it, thanks.

Viewing 6 posts - 1 through 6 (of 6 total)

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

License required for the following item
Login and Registration Log in · Register