• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Importing Fonts

Home › Community Forums › Legacy Theme Support › Importing Fonts

Tagged: importing fonts, trouble with font weight

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 8, 2013 at 2:16 pm #7972
    lisao
    Customer

    So I’ve imported my fonts from Google the way I always do, Here is the google font I’m using:
    @import url(http://fonts.googleapis.com/css?family=Muli:400,300,300italic,400italic);

    The font is importing but when I change the weight from font-weight: 300 to font-weight: 400 for say the body text or an h1, nothing happens. For some reason it isn’t acknowledging the weight. Now, I tried importing this same font to an older version of the Legacy theme and it worked just fine. This is the first time I’ve run into this issue.

    Do I have to take extra steps to import fonts now for some reason?

    Here’s our site in progress: http://originalginger.com/demos/yorkhr/about/

    October 8, 2013 at 2:19 pm #7973
    Wes
    Moderator

    In the new update I’ve added the default Oswald Google Font in the functions file. It should look like this –

    //* Enqueue Lato Google font
    add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
    function genesis_sample_google_fonts() {
    	wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Oswald:400,300|Open+Sans', array(), PARENT_THEME_VERSION );
    }<!--formatted-->

    You should still be able to add it to the stylesheet if you want though, both ways should work fine.

    October 8, 2013 at 2:51 pm #7974
    lisao
    Customer

    Unfortunately, for some reason you can no longer just use the @import css line for it to work. I had to go in and adjust your php to add the font I want. It’s now working. Thanks for the help!

    October 8, 2013 at 5:00 pm #7977
    Wes
    Moderator

    Oh I didn’t know that about the css. I’ll keep that in mind if it comes up again. Thanks for letting me know!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework