WordPress.org

Ready to get started?Download WordPress

Forums

Decode
[resolved] google fonts (7 posts)

  1. ynz
    Member
    Posted 8 months ago #

    Hi,

    all the time I used a google font with Decode. With the latest Update it doesn't work anymore. Any ideas, what could be the problem?

    I put this to the header.php:

    <link href='http://fonts.googleapis.com/css?family=Muli:300' rel='stylesheet' type='text/css'>

    And that is a part of my style.css:

    body,
    button,
    select,
    textarea {
    	color: #444444;
    	font: 300 110%/1.5 Muli, "Oxygen", "Helvetica Neue", "Arial", sans-serif;
    }

    Choosing a 'local' font also doesn't work. Oxygen is the only font, Decode is using.

  2. Scott Smith
    Member
    Theme Author

    Posted 8 months ago #

    Are you using a child theme?

  3. Scott Smith
    Member
    Theme Author

    Posted 8 months ago #

    Also, you shouldn't need to add something to header.php, actually, please don't. Use a function to enqueue a stylesheet. Send me a link if you need to.

  4. Armoros
    Member
    Posted 7 months ago #

    Hi i have a slight issue with the fonts too, i have my site in 2 languages, is it better to use Google fonts or @font-face?
    If i use Google Fonts what and where i must put the code? I use the code that google provides but no luck, i want to use droid sans, but nothing change.

    Thank you for any help and congratulations for your theme.

  5. ynz
    Member
    Posted 7 months ago #

    Hi,

    sorry for the late answer, but i've been on holiday.

    I'm not using a child theme.

    The only changes i've add to decode, are the google font and the adn-authentification, which I added to the header.php. Since the update to Decode 2.8.3 it doesn't work anymore. Where should i add the code now?

    So far i've downgraded to 2.8.2!

  6. Scott Smith
    Member
    Theme Author

    Posted 7 months ago #

    2.8.4 is out now and has fixed child themes. But you can still add the HTML code to header.php or the PHP code to functions.php. I'm not exactly sure what issue you are experiencing though.

  7. Scott Smith
    Member
    Theme Author

    Posted 7 months ago #

    Maybe try putting "Multi" in quotes. The Google Fonts page should show you how this works.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.