Community Forums › Forums › Archived Forums › General Discussion › Can't Get Google Fonts To Working
Tagged: fonts, google fonts
- This topic has 6 replies, 2 voices, and was last updated 12 years, 11 months ago by
Florissa.
-
AuthorPosts
-
January 2, 2013 at 10:37 am #8956
Florissa
MemberI am new to adding Google fonts to WordPress. I read Brian's blog and thought I added the code in correctly, however, the fonts are not appearing. I am testing it out on a dummy site before attempting on my real site.
URL: http://twp.techiepros.com/a-q-a-with-lynn/
I added the following code to the stylesheet: at the top:
/* Import Google Fonts
------------------------------------------------------------ */
@import url(http://fonts.googleapis.com/css?family=Sail|Sevillana|Iceland);Wherever I see font family, I replaced it with this:
font-family: 'Sail', cursive; 'Sevillana', cursive; 'Iceland', cursive;
However, I don't see the fonts. Could someone please explain to me what I have done wrong?
Thanks so much!
January 2, 2013 at 10:51 am #8959Ozzy
Memberfor the font-family in your style.css, try doing this instead:
font-family: 'Sail', 'Sevillana', 'Iceland', cursive;
January 2, 2013 at 11:56 am #8975Florissa
MemberThanks Ozzy. That didn't seem to change anything.
January 2, 2013 at 3:16 pm #9031Ozzy
Memberyour import was fine, i was saying change the font-family in the ids and classes you wanted to.
this is good:
/* Import Google Fonts
———————————————————— */
@import url(http://fonts.googleapis.com/css?family=Sail|Sevillana|Iceland);change the ids and classes font families to:
font-family: 'Sail', 'Sevillana', 'Iceland', cursive; //use single quotes, not accents, as well
right now, there are only 3 classes affected by those fonts. what classes were you trying to change?
January 2, 2013 at 4:31 pm #9045Florissa
MemberI was trying to change the menu items in the Navigation bar, the post and page headings as well as the widget sidebar titles. Those were the only 3 places I could find that mentioned font-families. I guess there is somewhere else I need to change this?
Thanks so much for your help!
January 2, 2013 at 5:56 pm #9065Ozzy
Memberso the first thing you need to do is fix the importing of the fonts in the style.css:
@import url(http://fonts.googleapis.com/css?family=Sail|Sevillana|Iceland);find the following in your style.css:
.menu-primary a,
.menu-secondary a,
#header .menu aand add the
font-family: 'Sail', 'Sevillana', 'Iceland', cursive;property.find #page-title in style.css and put the
font-family: 'Sail', 'Sevillana', 'Iceland', cursive;property in.find
.taxonomy-description h1,
.widget-area h4and add the
font-family: 'Sail', 'Sevillana', 'Iceland', cursive;property.if you need any more help, let us know!
January 6, 2013 at 6:45 pm #9998Florissa
MemberThis worked perfectly. Thank you so much for your help! I really appreciate it!
-
AuthorPosts
- The topic ‘Can't Get Google Fonts To Working’ is closed to new replies.