For years, Bloggers and web-designers were using those simple web fonts to style their blogs and templates. They didn’t had an option to change those fonts as there were only some fonts accepted world-wide as web fonts. It was impossible to use another fonts on web pages as they would appear in ten monitors in ten different styles ! Their appearance may change in respect of the change in the OS, softwares … etc of that computers. So web-designers were trapped under those countable fonts…
But now Google has launched their new service Google web fonts with the slogan – ‘Making the Web Beautiful!’. This service will allow you to use custom fonts on google font directory on our blog/ websites without any sign-up or anything else. As it’s from ‘Google’, It doesn’t have any complications and it’s also completely free for commercial and private use.,No restrictions held or no harsh laws. This could make your blog look more stylish and is applicable for blogger blogs too. Don’t get amazed, It’s True ! I’ll show you how to do it with blogger.
For this, go to Design or layout -> Edit HTML -> Download full template
tag of your blogger template.
The code may look something like;-
Important : ?Please add a Forward slash (“/“) before the the end of the tag (“>”) of this code. i.e, The above code should look like ;-
/>
This is because blogger use XML for coding which won’t allow unclosed tags like this. So you have to close this tag by adding the forward slash.Now Copy the code and paste it just after
. It should be the first code after the
section. Otherwise it could cause problems while displaying the text in IE and may be in Firefox.
Please remember to add the forward slash before the end tag. and now please click Save Template
now the code required for Google web font has been added to your blog. Now you have to can use google fonts in your blog by applying it on any widget tags.
If you want to make the font appear for a specific sentence only in your blog post, then use the HTML code ;-
in the above code changeFontName', serif;">Your text
FontName : to the font name that you chosen it from google.
Your text : to any text you want.
If you want the font to appear for your
- Blog titile
- Post title
- post body
- sidebar fonts
Here I’ll tell you How you can change your post title. For this you have to search for the title css code
.post h3or
.post-title h3This is the common css code for post title in blogger. now we have to add the css code for the new fonts for this code,. For this, add/modify these lines below the above codes.
font-family: 'Your Font Name';The code should look something like ;-
.post h3 { font-family: 'Your Font Name'; }Here I had added the css code for Tangerine. You should post the css code between the “{” and “}” tags of .post h3. Like wise you can add the css code for other position too by modifying the css code.
Here i’ll mention the main positions and the common css code for each position. Please note that it may change if you are using any custom template.
- Title : h1
- Post title : .post h3 or .post-title
- Post font : .post-body
- Sidebar : .sidebar h2
for example, if you want to change the post font,
in the above table, you can see that the tag to edit for the post font, is .post-body
so you have to search for .post-body in your template, and below it, add the following line.
font-family: 'google Font Name';the final code should looks like
The code should look something like ;-
.post-body { font-family: 'Your Font Name'; }These above values may change in some custom themes. But these are the common seen tags. If you didn’t find the tags with this, try searching similar tags.
I hopes that this tutorial was helpful for all of you. If you have any question regarding this, please feel free to ask them here, the comments page are open for it, isn’t it ?
0 Responses to How To Use Google Custom Fonts For Blogger.