• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How import a non-Google font into News Pro?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How import a non-Google font into News Pro?

This topic is: not resolved

Tagged: import fonts, News Pro

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 4 months ago by CThor.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 27, 2015 at 1:08 am #142491
    CThor
    Member

    I'm rebuilding a site from the original News theme into the html5-based News Pro theme. In the News theme, I am importing a non-Google font like this:

    /* Import Fonts
    ------------------------------------------------------------ */
    
    @font-face {
        font-family: 'DINPro';
        src: url('http://knowledge.ckgsb.edu.cn/assets/fonts/dinpro-webfont.eot'); /* IE9 Compat Modes */
        src: url('http://knowledge.ckgsb.edu.cn/assets/fonts/dinpro-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
        url('http://knowledge.ckgsb.edu.cn/assets/fonts/dinpro-webfont.woff') format('woff'), /* Modern Browsers */
        url('http://knowledge.ckgsb.edu.cn/assets/fonts/dinpro-webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
        url('http://knowledge.ckgsb.edu.cn/assets/fonts/dinpro-webfont.svg#DINPro') format('svg'); /* Legacy iOS */
        font-weight: normal;
        font-style: normal;
    }

    Works perfectly. But this way of font embedding doesn't work in html5, apparently. Anyone know what I need to do to import this font into the News Pro theme?

    Many thanks in advance!

    February 27, 2015 at 1:41 am #142498
    ᴅᴀᴠɪᴅ
    Member

    This way works fine.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    February 27, 2015 at 9:44 am #142536
    CThor
    Member

    Sorry, does not work fine or else I would not have reached out for help...

    Works in News, not in News Pro, at least in my experience. Could the problem be elsewhere and not with the code I posted?

    Thanks for any assistance.

    March 7, 2015 at 11:06 am #143583
    CThor
    Member

    Okay, I figured this out and want to share in case anyone else has problems.

    In the end, the code was indeed fine. The problem was that I was trying to import the fonts from the active website into the development website, which meant that the font and the website were not on the same domain. I couldn't figure out what Chrome's Inspector was telling me in its error message, but I had an intuition finally and and simply uploaded the fonts to the development server and changed the URL in the code accordingly. Then it worked perfectly.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble