Using Google Fonts – linkage

  • Author
    Posts
  • #4091
    Richard

    First, I find this theme very versatile, well done.

    I needed to change the header font and found ‘Roboto’  on Google Web Fonts. I put that font-family into the Misc Settings CSS box but no result. From Firebug it was apparent it was not being picked up.

    So I looked for a method that Mantra uses to source Google Fonts and could find no trace in a database search or in the theme code or page header. The Google site said you had to link to their source, which made sense – so I hacked the header.php (Yes I know that is not the right method but I wanted to see if it worked) to insert the link and up it all popped.

    The narrative to the release 1.9.9.6  said you c ould use Google Fonts so please what is the correct method?

    #4096
    Louise

    What I did is go into Mantra Settings -> Text Settings and then entered the desired font in the text  box on each font type I wanted to alter.

    Does this make sense?

    Best regards,

    Louise

    #4104
    Richard

    Thanks for the input Louise but the Header setting in Text does not include the option to change the font, only the indent.

    I was able to put the font name in the CSS in the Miscellaneous Settings but it had no effect until I linked to the Google Font by inserting <pre><link href=’http://fonts.googleapis.com/css?family=Roboto&#8217; rel=http://www.cryoutcreations.eu/forum/t/using-google-fonts-linkage’stylesheet’ type=’text/css’></pre>

    #4177
    Zed
    Cryout Creations mastermind

    Under Mantra Settings > Text Settings, you just type in the names of the Google fonts you want to use for particular areas and the theme will do the rest.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #5389
    Helen

    I presume these instructions are for the more up to date version of mantra?  I am using version and have a drop down menu for fonts.  Is there a way to use google fonts by editing the code?  I looked but couldn’t find where the h1 css is?

    #5445
    Zed
    Cryout Creations mastermind

    Support for Google fonts was added in version 1.9. Are you using an even older version?

    Right under the selector for the predefined fonts there’s the input field for the Google font names.

    EDIT: I see you’re using 1.8.6. You’ll most likely need to use a plugin to apply Google fonts.

    • This reply was modified 11 years ago by Zed. Reason: edit

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Using Google Fonts – linkage’ is closed to new replies.