StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2012, 09:47 AM
Welshy Welshy is offline
Registered User
Genesis Member
 
Join Date: Apr 2009
Posts: 262
Default How to add Google webfont with an @import rule

Hi All,

Am trying my hands on the Google webfonts : http://www.google.com/webfonts#ChoosePlace:select I have copied the code but, I didn’t understand where exactly and how I need to put the code in the style sheet of my theme.

The instructions on Google webfonts says: To embed your Collection into your web page, copy the code as the first element in the <head> of your HTML document.

Add the font name to your CSS styles

I chose the Droid+Sans and below is what am working on:

@import url(http://fonts.googleapis.com/css?family=Droid+Sans); body { background: #FFFFFF url(images/bg.png) repeat-x; color: #333333; font-size: 12px; font-family: "Droid Sans", Tahoma, Verdana; margin: 0 auto 0; padding: 0; line-height: 20px; }
I would appreciate help and insight to implement this correctly.

Thanks.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buying a font for design, do I need the "webfont" as well to integrate with Wordpress peripatew General Discussion 2 03-22-2011 03:23 PM


All times are GMT -5. The time now is 06:33 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.