Google Webkit installation help
-
Hi I am trying to install / link a Google Web font in my Graphene template I am relatively new to PHP do know HTML and CSS can someone shed some light on the subject and point me in the right direction?
Regards,
Fustrated..
Admin
Moved to Support. Please post in the correct section next time.
Have you seen the option in Graphene Options > Display > Text Style Options > Google Webfonts?
No my Graphene text style options does not have a Google Webfonts option.
Bryn
Admin
You’re using an older version of the theme. If you haven’t modified any of the theme’s files, update to the latest version (1.8.2) to get that option.
I have modified the CSS and some sprites
Where and how can I paste the Google webfont link? I read online that it can be put into the header.php…but after messing up the theme-function.php i am leary..
If you’d ever need a plugin for that, here is the Ultimate TinyMCE Google Webfonts
1. Enqueue it (this goes in the child-theme’s functions.php file. Put this anywhere between opening and closing php tags. Change the fonts URL to what you got from the Google Webfonts)
function load_google_webfonts() {
wp_register_style('GoogleWebFonts', 'http://fonts.googleapis.com/css?family=Marcellus+SC|ABeeZee');
wp_enqueue_style( 'GoogleWebFonts');
}
add_action('wp_enqueue_scripts', 'load_google_webfonts');2. import the style sheet (Put it in child theme’s style.css)
@import url(http://fonts.googleapis.com/css?family=Marcellus+SC|ABeeZee);
Of course! Change the URL to what you got from the Google Webfonts.
That’s precisely what I pasted in at the end of the Theme-function.php file and mucked it up… I’ll try the plugin first.
Thanks!
Bryn
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.