• Resolved Huai

    (@huai)


    Hi, I just built my blog on https://huaikwan.com/

    Thank you so much for the beautiful design.

    As you can see, I am writing in Chinese. So I really need to add some Chinese fonts everywhere(sidebar, post….). Could you please let me know where I can add fonts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do you mean you need to translate?

    Have you used the .po file to translate the theme?

    Kadence Themes

    Thread Starter Huai

    (@huai)

    No, I just need to to install a couple of fonts I have on my computer.

    People told me to look into the style sheet and try to find the font-family. I tried but didn’t see anything….

    You need to create a child theme, add your font files to that child theme folder then with the child theme css add the appropriate css. Something like:

    /*
    Theme Name: Virtue – Child
    Theme URI: https://themes.kadencethemes.com/virtue/
    Description: Child theme for Virtue
    Author: Kadence Themes
    Author URI: https://www.kadencethemes.com/
    Template: virtue
    Version: 1.0.0
    */
    @font-face {
        font-family: 'engraversgothic_btregular';
        src: url('tt0586m_-webfont.eot');
        src: url('tt0586m_-webfont.eot?#iefix') format('embedded-opentype'),
             url('tt0586m_-webfont.woff') format('woff'),
             url('tt0586m_-webfont.ttf') format('truetype'),
             url('tt0586m_-webfont.svg#engraversgothic_btregular') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    h1, h2, #nav-second ul.sf-menu a, .kad-nav-inner .kad-mnav, .kad-mobile-nav .kad-nav-inner li a, .nav-trigger-case {
    	font-family: 'engraversgothic_btregular' !important;
    }

    Kadence Themes

    Hello, another question related to this, but for Google fonts OpenSans “manually add for advanced control”

    Because it does not render ????? on virtue theme as it should.

    Forum where solution is written:
    https://cyberchimps.com/forum-topic/how-to-google-fonts-subsetlatin-ext/

    Where can I add this extra line:
    @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,800,400italic&subset=latin-ext,latin);

    Thanks.

    Well, it works when I put this line in child theme style.css

    If there is some way to do this through Theme admin, please advise. Thanks.

    There is an option in the typography settings to use a latin-ext subscript. Is that not working for you?

    Kadence Themes

    Yes, you are correct. I missed that option somehow. This theme is really superb.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘where to add fonts?’ is closed to new replies.