Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Monday, May 30, 2011

Style Post and Sidebar Titles With Google fonts In Blogger


Pin It

google-fonts-for-bloggerGoogle Fonts API as I previously mentioned in Part -1 of the post "How To use Google fonts in Blogger?"   is of immense importance when it comes to using any font style you wish for your web designs without having to bother whether or not the fonts are installed on a visitors computer or not. The fonts are stored on Google servers and you simply need to embed them in your templates to let the fonts appear on your blog. I demonstrated in great detail in Embedding Google fonts in Blogger Post  about how can you use the Google Fonts Previewer tool and add the embeddable code and CSS code to your Blogger templates. Today we will learn how would you use these font in Blogger posts, titles, block quotes, sidebars, headers, footers etc. Kindly see a demo first:

 

Google Fonts Demo

 

To learn how to do it simple follow up:

Choosing a Font Style and Embedding the Font

  1. Go To Google Font Previewer
  2. Choose Your selected font style and then copy the first line of code as shown below,

google-fonts

  This line will look similar to the one below,

<link  href=http://fonts.googleapis.com/css?family=Aclonica:regular 
rel="stylesheet" type="text/css" >
You will have to add a back slash "/" at the end of the above link like this,
<link  href=http://fonts.googleapis.com/css?family=Aclonica:regular 
rel="stylesheet" type="text/css" />
 3.  Go To Blogger > Design > Edit HTML 

  4.    Backup your template

  5.    Search For </head> and just above it paste the code you copied from Font previewer like this,

<link  href=http://fonts.googleapis.com/css?family=Aclonica:regular 
rel="stylesheet" type="text/css" />
</head>
  6.  Save your template and follow the next part of the tutorial.

 

After you have embedded the font in your templates, you will have to apply the effects to selected areas of your blog like Header Title, Post title and Sidebar. To do that follow the steps below,

How To Style Post Titles in Blogger?

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Search For the following code in blue,

.Post h3 {

....

...

....               }

    4. Inside the above code you will find this line or a similar one,

.Post h3 {

....

font-family: arial, verdana;

....               }

    5. Simply replace it with the Second Line which you can get from the font previewer

google-fonts

Like this,

.Post h3 {

....

font-family: 'Aclonica', serif;

....               }

   6.  Hit Save and you are done!

   7. Preview your blog to see your Post titles appearing beautifully!

How To Style Sidebar Titles in Blogger?

All steps are same as we discussed for post titles. Here instead of searching for .post h3, search for,

.Sidebar h2{

....

...

....               }

and replace the font-family with your Second Line of Code like this,

.Sidebar h2 {

....

font-family: 'Aclonica', serif;

....               }

Save your template to see the effect.

 

Ps: Since the CSS coding for each template may differ so feel free to ask me for any help if needed. Have Fun!


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

20 comments:

Comment Page :
Mari Berkomunitas Di Faceblog on 10:29 AM, May 30, 2011 said... #

thank you very much .. I need this !!

Shadab on 10:56 AM, May 30, 2011 said... #

Great........ Thanks.........

http://dark-hackerz.blogspot.com/

Sasha said... #

Oh Gosh.... ds is so very much helping... Long live Mohammad ..u have no idea u actully solved ma problem dude...
ur blog ix real nyc thng to visit, its worth visitng ... i hope i l becum a great blogger soon.....

regardx,
Sasha Gray.....

ifoundmyfile on 5:06 PM, May 30, 2011 said... #

Excellent. Thanks bro

Mohammad Mustafa Ahmedzai on 11:43 PM, May 30, 2011 said... #

@Mari @shadab

My Pleasure pals :>

@sasha

Thank you sasha for those precious words. :>

@ifound
You are welcomed buddy. :)

qalish on 7:08 AM, May 31, 2011 said... #

wow, tq

si on 4:03 PM, May 31, 2011 said... #

Dear Friend Read more Hack not working my blog pls help me

http://vinayakarkoyil.blogspot.com/

and i need your help

1) i want change to footer image, while i try to change the image does not appear center.

2) Post area(bottom) show two lines, How do remove that lines?

3) Side bar Heading Distance is more how to reduce the distance?

4) Side bar Move to another side

5) Vertical Menu Padding Height Change

pls see the image what i want

http://1.bp.blogspot.com/-4Ibk4HUF4_c/TeSqBLEKAhI/AAAAAAAAACo/T5Ju0CGh6YY/s1600/Help%2B1.jpg

http://3.bp.blogspot.com/-hSlBf8BVkaY/TeSqSW0T4XI/AAAAAAAAACw/mzRDwNZIINY/s1600/Help%2B2.jpg

Pls do the help awaiting for your reply

Sekar

Mohammad Mustafa Ahmedzai on 7:05 PM, May 31, 2011 said... #

@Sekar

I just viewed your template and the designed problems that you mentioned will require me to view your template. Please email your template at mohammad@mybloggertricks.com . Please spare me some time as there is a lot of load on me. :>

si on 10:58 AM, June 01, 2011 said... #

Thanks for your Reply Template sent your mail pls check

Amit M B on 3:02 PM, June 05, 2011 said... #

Hey Bro, can we add external style sheets to blogger in the same way as we add for google fonts. That would be great...

Mohammad Mustafa Ahmedzai on 1:04 AM, June 06, 2011 said... #

@sekar

I got your template and request you to kindly be patient. I will check that soon when ever I am free.

@Amit
Of course you can but only when the CSS file is too big but in our case its just few lines so better add them directly to the template

tak on 10:42 PM, June 17, 2011 said... #

sorry for disturbing..
i cant change my font even after i followed the tutorial u give..
how i can change my fonts..
one more thing, can u tell me how to add read more link to my post..
i have try all tutorial in the internet..but thats not helping at all.. read more link not even visible in my blog..so what can i do?
please help me..

MollyAhmad on 10:59 PM, June 17, 2011 said... #

hi.. it doesnt work, it says

Your template could not be parsed as it is not well-formed. Please make sure that all XML elements are closed properly.
XML error message: The reference to entity "v1" must end with the ';' delimiter.

Mohammad Mustafa Ahmedzai on 2:33 PM, June 18, 2011 said... #

@tak
Did you read the part of the tutorial where sidebar and post title fonts are being changed? Did you find all the codes as mentioned in the tut?



@Molly
did you add a back slash in step#2 ?

Mohammad Mustafa Ahmedzai on 2:35 PM, June 18, 2011 said... #

@Tak
For that read more link you can find several articles on this blog with buttons and icons. Please read this post ->
Read More Link

tak on 6:09 PM, June 19, 2011 said... #

im still can't change my fonts..its end up like molly n can't be save at all n i cant even previewed it.. i comes out error n cant be save.. i read all the tutorial twice.. but still endup like molly..

tak on 7:17 AM, June 20, 2011 said... #

Your template could not be parsed as it is not well-formed. Please make sure that all XML elements are closed properly.
XML error message: Open quote is expected for attribute "{1}" associated with an element type "href".

Error 500

this error is comes out after i tried to previewed it...even after i follow the steps int his tutorial..

lyssa on 11:00 AM, June 28, 2011 said... #

Thank you for sharing great information about how to use google's Classic Fonts. Great job.

♛ NazirahMoktar ♛ on 10:04 AM, October 27, 2011 said... #

thanks for this tutorial..its work :) i'm very excited & i think i want to change the font every seconds!yeah! :)

Admin on 5:49 PM, March 27, 2012 said... #

not able to find .sidebar
plz help brother.

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |