May 30, 2011

Widgets

Style Post and Sidebar Titles With Google fonts In Blogger


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 »

26 comments:

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

thank you very much .. I need this !!

Shadab on May 30, 2011, 10:56:00 AM 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 May 30, 2011, 5:06:00 PM said... #

Excellent. Thanks bro

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

@Mari @shadab

My Pleasure pals :>

@sasha

Thank you sasha for those precious words. :>

@ifound
You are welcomed buddy. :)

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

wow, tq

si on May 31, 2011, 4:03:00 PM 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 May 31, 2011, 7:05:00 PM 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 Jun 1, 2011, 10:58:00 AM said... #

Thanks for your Reply Template sent your mail pls check

Amit M B on Jun 5, 2011, 3:02:00 PM 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 Jun 6, 2011, 1:04:00 AM 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 Jun 17, 2011, 10:42:00 PM 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 Jun 17, 2011, 10:59:00 PM 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 Jun 18, 2011, 2:33:00 PM 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 Jun 18, 2011, 2:35:00 PM 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 Jun 19, 2011, 6:09:00 PM 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 Jun 20, 2011, 7:17:00 AM 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 Jun 28, 2011, 11:00:00 AM said... #

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

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

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

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

not able to find .sidebar
plz help brother.

Hamza Hassan on May 26, 2012, 8:06:00 PM said... #

hey I cant find .post h3 and also sidebar

Tanmay Kapse on Jul 29, 2012, 11:59:00 PM said... #

I did change the font to Salsa , but then after loading the font changes back to some other fonr , please help

Endear Sallmaan on Dec 29, 2012, 10:43:00 AM said... #

I only want to change my sidebar and footer widget's font style i alredy changed my posts font PLEASE help to change widgets titles font

Nenetaake Vda on Mar 8, 2013, 6:14:00 PM said... #

Hey Bro,
I really follow your instructions but the problem is that I can't save my template. Something like Error parsing XML

Thanks and hope to hear from you

Phong VÅ© on Apr 1, 2013, 2:51:00 PM said... #

Thanks for post
Tu hoc seo

nomsyifal h on Apr 19, 2013, 4:15:00 AM said... #

thanks for this tutorial mohammad..its work :D

Click Here To add Comment

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. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |