How to add Different Meta tags to Different Blogger Posts
Posted by kranthi on Friday, August 8, 2008Yesterday, a reader(Yakacha) asked meThanks for your beautiful templates.You r great.I want to ask u something. Do u know how we make separate unique title and meta tags for each posts in a blog? I have seen others doing that.
What's the use of adding different meta descriptions to different Blogger Posts?
It is very good for SEO (Search Engine Optimisation) . Actually, why we are adding meta tags is to tell search engines what that page is all about... but, using same meta tags to all of your blog posts lessens the search engine rankings and traffic little bit.
But, if you add different unique meta tags to different Blog posts, it makes the search engines to know more about your individual blog posts and make them crawl and index your pages better and it also improves your Search engine rankings for sure ;)
So, how to add this?
For this to happen, you have to add some pieces of codes to the template.
First Sign in to Blogger dashboard » Layout » Edit html
and find this line
<b:include data='blog' name='all-head-content'/>
and add this code just below that line
<b:if cond='data:blog.url == "http://bloggertricks.com/"'>
<meta content='DESCRIPTION' name='description'/>
<meta content='KEYWORDS' name='keywords'/> </b:if>
So, the final code looks like this one

We now added meta tags to the homepage. Next, you want to add meta description for another post, for example : http://bloggertricks.com/2008/05/how-to-add-paypal-donate-button-to-your.html
Now, what you have to do is pasting the above three lines below the present code and changing the link,description and keywords.
So, the final code now looks something like
<b:include data='blog' name='all-head-content'/>
<b:if cond='data:blog.url == "http://bloggertricks.com/"'>
<meta content='DESCRIPTION' name='description'/>
<meta content='KEYWORDS' name='keywords'/> </b:if>
<b:if cond='data:blog.url == "http://bloggertricks.com/2008/05/how-to-add-paypal-donate-button-to-your.html"'>
<meta content='How to add Paypal Button to your Blogger Blog, Adding Donations to your blog' name='description'/>
<meta content='Adding,Paypal,Donate,Button' name='keywords'/> </b:if>
Just like the above procedure, you can add different meta tags to as many blog posts as you can.
Try it out and share your experiences!
Subscribe to:
Post Comments (Atom)
141 comments:
OMG, I've written 400 posts. I must add keywords and descriptions for all of them :shock:
Bloggers like me who post 4-5 articles/days its a gr8 pain to add meta description to each blog post.
I heard that Wordpress blogs dont need to do this job they got some plugins to do it.
I was really wondering why such great feature is not provided by blogger.com.
Author: www.angrezy.com
hi guys, you don't need to put them to all of your posts... you can choose your best posts and put for as many posts as you want.
Good then.
Thank you for sharing such useful information. I already have few tags, but this is a great reminder for me to add more. Thanks again - Nards (and BTW, your templates are fantastic!)
Great pointers, thanks :)
Your post inspired me to do some digging and I found you can set the meta description to auto-complete using this code:
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
/b:if
This sets the description text to be the same as the post title for every post.
I will definately try this out.By the way Thanks for making an entire post on my comment. hats off to u.
sorry for off-topic,
can you teach me how to put up this comment box? The blogger comment window is very troublesome ^^;
thanks~
hi Andra,
that is Blogger new Inline comment feature. To put this, read this post
okay, thankies~ ^^
Hey Kranthi,
Thanks for all the information. I need some help. I am using your charcoal 2 template. I still have to complete editing the design.
http://i44.photobucket.com/albums/f23/thebluraycritic/Untitled-1.jpg
How do I get rid of the encircled things?
Thanks for your time and I will include your name on my credits page.
hi..yesterday i have problem with my template...but, i was very confused...but lucky u've given all the gif and JPEG for the background....
so that i could upload it in the other wehosting and replace it to mt template...
thank u very much...
thx
Is there an equivalent for this code to work with your template?
$BlogMetaData$>
meta name="keywords" content="ItemPageBlogger$BlogItemTitle$/Blogger,/ItemPage> ArchivePageBlogger$BlogItemTitle$, /Blogger/ArchivePage $BlogTitle$"
Hi there, do I change this : link
bloggertricks.com with my link???
giahu@rocketmail.com
The code in the third box from the top
b:if...
meta content...
meta content...
I just need to add this code only right???
Hey thanks for the really wonderfull post..i too was seeking for such a system....and initially when reading the post i too thought that it would be really time consuming too add meta descriptions to each post...eventhough it is said that "do this to the important post",but anyway we are considering every single posts of ours is of more value and more priority give...but when reading to the bottom i saw a comment by Mr.David that he has found a new method to add these stuffs automatically...
So thanks Mr.David, i will try that...
Posted by: http://anyimage.blogspot.com
Thanks! This is a great tip for Blogger blogs that I hadn't figured out yet. Wordpress does has a plugin for this and I always use it and it helps.
Hello! Correct me if I'm wrong. It's really necessary to use Meta Tags in order to rank well in Yahoo & other search engines. But I think Google doesn't want bloggers to use this in their blog posts.
Hi Miranda, meta description is very important (for any search engines)... and Meta keywords are not important.
Wew,,, thanks
I think i will use it.
I've stumble this post :)
hello kranthi,
i am having the same problem as like miranda.
an error comes which displays that meta tag cannot be accepted
hi kranthi, does it mean that as we post more entries, the html layout of our blog will get longer and longer ? since we will add 3 lines of code for each post?
Hi Kacy, yes.. the template code will be longer...but, you can remove the meta keywords line... only Meta description is important.
hello how are u, i have question, how to set tittle in like your blog this"How to add Different Meta tags to Different Blogger Post|Blogger Template"
ur tittle is not like another blogspot. How come?
Wow, great information u are a champ man. thankx
hi kranti .. im not from ur friends list
i searched on google nd got ur profile
nd the answer... i tried it out but not
happend
hi Han, That is called Swapping the Blogspot title.It is very good for Search engine optimization. I'll write a post about it today. Check it out.
Thanx but dont u think its hard to do it for every post....
Thank You Very Very Much , & Do Help Me more by writting these types of Tips & Help Me Advertise
hi kranthi..thanx u for ur tips..
it helps me alot..
http://dfchannel.blogspot.com
hello there..... thanks for this tips.... very useful for me as newbie blogger.....
:)
http://caribokep.com
Hi Kranthi, after inserting meta tags, how do I check my website page ranking?
Hello David,
The trick worked very well,
Here is the script that i added to my blog:
b:include data='blog' name='all-head-content'/
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
title>data:blog.pageName/> - data:blog.title//title
b:else/>
title>data:blog.pageTitle/>/title
/b:if>
(Due to comment post restrictions, i deleted < tags please put tags and add to your blog)
After that here is the output that i got:
meta content='Looking for a Carpooling to Office?' name='Description'/>
title>Looking for a Carpooling to Office? - Phani's Blog /title>
Thanks to blogger tricks and David especially.
hi kranthi
happy to see your blog
superb
Can you accomplish this if you host your blog on your own domain - which is what I do
hi, i'm facing a problem with this. i added 3 of my posts with it and it worked fine but now when i'm adding more it gives the meta tag error. although when i try with ur default code, i mean without changing the url, description and keywords, it is again working fine.
and thanx a ton for all the stuff.
mobileweed.blogspot.com
one more thing, for adding meta tag for my posts, i have to add it to my default template only or i have to add it to every different post separately? i'm adding it to my main page layout.
@Phani Kumar .M
your srcipt sounds fine but I dont understand what u said that will be added in the script.please make it clearer.
How about using your blog labels and post body ...
1. post.labels <-- Is this the code for the labels?
2. post.body <-- Is this the code for the body?
#1 will be the value for "keywords"
#2 will be the value for "description"
Working Great !!! Thank you very much and its working nice in my blog:
check this two page:
(1) www.mailsiread.com
(2) http://www.mailsiread.com/2007/11/shahrukh-khans-residence-mannat-palace.html
nice blog
www.blog4jntu.co.cc
thank you, this will really help to increase the traffic to site. http://techblog.jdkwebsolutions.com
Thanks
Kiran
@David ,
I have tried I believe the same code that uses your title as the meta description for each post.
The problem is even if you swap post title for blog title with
Post Title: Blog title
The meta description gets formatted as
Blog Title:Post Title
which can be a pain if your Blog Title is long
losing the keyword advantage of your post title pushing those keywords to the end of the snippet description.
Plus it looks bad as well and creates duplication among different post search engine listings.
unless maybe if you used code that dropped the
Blog Title on all posts except the main page but even then you'd have duplication between the search engine listing title link text and snippet description such as:
Get Search Engine Number One Rankings - Get Search Number one Rankings
Kranthi's solution although more time intensive may proove more fruitful (used along with code that drops Blog Title on all posts except main page - I'll have to experiment on that one).
I'm sure you could make a macro or use imacros to create a semi automatic script to make the work easier maybe.
@Kranthi,
If someone were to create custom meta descriptions for 400 posts Yikes! :)
Could all that code in there slow page load times?
CJ
it may be silly to ask this but i hav to adding meta tags in our blog itself with out any offerd tag from other site ???how it will increase trafic or gives lnk to other sites
my mail is vishnu_vardhan46@yahoo.com
my name is vishnu my site is www.cooltips.tk
Hi, kranthi,
Would you kindly assured me that when I will add meta tag for a new post then I have to add also the home page meta tag every time with new posting?
I mean like you 10 lines which is referred by you in the box for every new post isn't it?
Mah
thanks for the gr8 tips man......u the guru to new bloggers like me...
http://pesit08.blogspot.com
very interesting i think i will try the trick david added in the comments this looks very useful I already rank great in blog search but my over all google search stats are lacking. I think i will go from 10k page views to maybe 50k with this :-)
THANKS SO MUCH
Have a better idea ?
It's so hard to change for about 500 posts
holy cow! this was perfect information at the perfect time. went to my first bloggers meetup group in Chicago last night where I (finally) learned more about SEO, tagging, and keywords. This helped me implement what I learned. I shared this link with my new blogging associates.
hi, thanks for your code your are good keep going
Thank you very much i am tried out this you can see
my blog is
Dog Training Tips
www.dog-training-tips.co.cc
Hi I am interested in this site. Because it is benifit with reading this site. (www.makingbuck.blogspot.com)
i tried it but my dashboard says:
We were unable to save your template
Please correct the error below, and submit your template again.
More than one widget was found with id: HTML11. Widget IDs should be unique.
what is wrong?
I did all as per instruction and my dashboard says :
We were unable to save your template
Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Element type "meta" must be followed by either attribute specifications, ">" or "/>".
Please help.
allvey@yahoo.com
www.thedusunaroma.blogspot.com.my
David,
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
/b:if
where to paste this code?
thanks
We need a way to auto add the desc and keywords for each post.
New Blogger has a place to enter keywords but they are not put into the meta tag. Need code to take the imput from the keywords and add them into a meta tag.
Thanks for your help.. this is great info and very clear and concise.
Stupid question I know, but do you do this in the layout, or can you put the last three lines at the beginning of each blog?
Thanks Kranthi for this one. It's really helpful for beginners like me. However, I need your help on another topic. Please see if you can.
I want to know whether it's possible to use different templates for different posts on the same blog on blogger.com? If it's possible, please explain me the procedure for it in detail. If it's not possible, just answer it so. Thanks in advance.
Why is my custom template tellin' me this???
"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly."
"XML error message: Element type "meta" must be followed by either attribute specifications, '>' or '/>'."
The thing is, I believe I've already added those attributes. Please help. Thanks.
I get this template error. Sorry im a blogspot newbie. Thanks in advance for your help
TEMPLATE ERROR: Extra characters at end of string: buf=[=="http://computer-equipment-review.blogspot.com/"] remainder=[]
HI Kranthi, Ur Tricks are superb,but My postings contains lot of images.
Will these tags work for image blog
SEO PAKISTAN - SEARCH ENGINE OPTIMIZATION AND SEARCH ENGINE MARKETING SERVICES COMPANY IN PAKISTAN FOR LINK BUILDING AND SEARCH ENGINE RANKING. www.seoptimizerz.com
hi Kranthi actually i tried ..evry time it says meta tag not allowed.. i have successfully added meta tag to my layout but cant help myself in adding meta tag to diffrent post
like i have a post how to increase download speed of utorrent can you tell me wat will be the complete code
my website is www.freedownloadhub.blogspot.com
and my layout meta tags are as
http://i489.photobucket.com/albums/rr256/imwarrior/untitled.jpg
plz tell me if there is anything wrong and plz reply to mail.. bratway1@gmail.com or here wherever u wish
Many thanks to you Kranthi.
You blogs are such helpful to me.
Nice post .its worked thanks to all.
Guys visit this Links . You can get more information.
Cyberherphy
www.webethick.co.cc
dark-coderz.net
Very useful! thanks for sharing!
Well it is really a horendous task if there are many posts.Can u tell me if it really pays to put meta tags for each post,i mean in terms of search engine ranking.
This site should help you out guys http://help.blogger.com/bin/answer.py?answer=47270#posts
From Blogger @ http://smartphone-guru.blogspot.com
Acomplia (Rimonabant) is an appetite suppressant diet pill. Acomplia is used complementary to diet and exercise to treat obese or overweight patients who suffer from Type 2 diabetes and abnormal levels of fat in the blood. It can also prevent the risk of cardiovascular disease. www.genericacomplia.co.uk
Thanks Kranthi, This is a very SEO friend way to add different meta tags in a more friendly way...
Hi there, I am a new blogger and am unsure as to how to change the tabs on the blogger to link to a new page on the blog or connect to another site link can you help, do I have to change the HTML or should I be able to attach a link in the layout page like I said I am a newbie
thanks Kaz
I'm a newbie to HTML. When I paste David's code into my HTML, the result is the HTML showing up in place of the blogger search bar on my blog page. What am I missing? Thank you.
Like PALS mentioned, I was wondering if it's possible to make
labels to meta keywords.
post.labels
does not seem to work...(i got ERROR message.)
have any idea?
hie kranthi
can u how us the tutorial on how to add this meta description to auto-complete?? i do not understand about the closing tag missing here.
b:include data='blog' name='all-head-content'/
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
title>data:blog.pageName/> - data:blog.title//title
b:else/>
title>data:blog.pageTitle/>/title
/b:if>
wow nice post i like it! soon i will try it... best regards from Indonesia
Hi Kranthi,
I am new to your blog. I found your information on triks with blogger are superb. They are very helpful. Keep it up. I have a question.
How to create tabs or buttons on your blog like you did in your blog? For your help thank you very much.
As i am a newbie to blogger can u tell me how to get this'' post a comment'' box in our blog....thanks
Thank You For The Help!!!!
Visit My Blog At: [url]dailyskatelife.blogspot.com[/url]
You have helped me out so much with your blog
Thank You !!!
Hi i am reading this blog from many months but i want to know if we have top 50 good posts than we can add 50 separate meta tags in out layout by visiting HTML section . So can we face any problem by adding to many descriptions for so many posts .
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Element type "meta" must be followed by either attribute specifications, ">" or "/>".
I ran into the above when trying to get this to work
b:include data='blog' name='all-head-content'/
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
title>data:blog.pageName/> - data:blog.title//title
b:else/>
title>data:blog.pageTitle/>/title
/b:if>
I am using Charcoal (second version with three columns)
any help would be great
Thanks Phani - I like your suggestion which worked a treat - now all auto-generating.
I have try this====post.labels <-- Is this the code for the labels?
It does work...
Good post, but it's too difficult I guess, and not worth it. I personally write articles for humans so I don't want to spend too much time on SEO. But don't get it wrong, I have this mega-maximum meta tags on my website so I take care of it well.
But I guess you will like this article of mine:
"How To Change Blogger Tab Icon" at:
http://isaacyassar.blogspot.com/2008/12/changing-blogger-tab-icon.html
hi you have a great blog. i really like it.
can u plz tell me that my post title is not shown in google only blog title is shown plz help. i am in trouble.
thanks
Excellent post! Extremelly helpful - now I just need to do it for all my posts. One question... When I save the template the blogger automatically changes - " - to - " -... Im not an expert in html but is that the same? Will your code still work after that?
Thanks!
Hi,
I have a internal blog with blogger tamplate.
(http://www.concreteequities.com/blog/index.html)
I want to put these meta tags for my posts. But while posting upgiven codes in my "blog html" it is not visible in the source code.
What should i do for this.
please mail me on naveenjosh2025@gmail.com
Great post, thanks for sharing
It's too difficult, adding the tags to hundreds of posts will kill every blogger. Your template will also grow too big, slowing your website's overall access. I have a better and easier way to do it:
http://isaacyassar.blogspot.com/2009/02/how-to-add-different-keywords-to.html
thanks for sharing this tip i have already incorporated in my 6 blogs. but i have discovered 1 thing, but i dont know if this is considered as unique meta tags for each page. what i did is the following:
i put this code twice to where it is instructed however i put first the title of my blogs, description and keywords. then 2nd one is my title page.
the outcome is :
It's good to laugh - laughter is the best medicine : this area is where my page title is.
The title page after my blog title becomes automatic to appear.
Does it have a unique title pages?
Thanks.
thanks helpful. I guess I can't see the results until Google re-google's my site?
http://fyi-penang.blogspot.com/
If you don't mind, can you make a visit to my page and see if I am putting it correctly?
http://trace-ability.blogspot.com
I guess there is some mistake there.
Thanks.
I think I did what Dave suggested but I don't see the output on my source as Phani Kumar outlined. If anyone has the time to just check my blog to see if it worked please let me know. Thank you
www.melissagreen-photgraphy.com
really good thankz kranthi.
Davids comment will help if any one have more posts check out........
Thanks a lot for this awesome Tip!
Great Post, many thanks.
Great tip. Works. Now if we can only figure out how to use labels as keywords.
Per Davids comment above, how do you implement this into your blog? Where do you put it, and what do you replace?
Thanks for your help!
Hi Kranthi,
I am very new to blogger and I need more information and to make my blog crawled and trafficked by Search Engine.
I have put meta tag in my template so how can I put meta tag to any post important? as I was a bit confused with that you mentioned above.
All the best
downloadworldweb.blogspot.com
after clicking the "Save Template" button, the quotations around the b:if urls are turned into HTML entities ("). is this supposed to happen and how will it affect these b:if conditions?
example:
http://i619.photobucket.com/albums/tt279/cfastudyguide/htmlentities.jpg
hi kranthi. i did it successfully but it doesn't show below the post or anywhere else.
Pls help.
I'm http://arandomlog.blogspot.com
Thanks for sharing your knowledge. It helped me.
Ritesh Shah
http://www.sqlhub.com
Thanks
very good post
http://adsensetips4money.blogspot.com/
Hi,
i want to ask u how to add the code in between the post....
like u had add some code above in this post...
hope u understand what i mean...
plz reply
email: amin.shaikh1007@gmail.com
thanks
Thanks a lot for the tips, it's work in my blog... now i have diverent description and keyword in my post... and i'am have more spirit for blogging... :D
Hi, have used this code and love it.
www.littlecompton.info
I want to do a similar thing and add a link to the body of the page according to the url. So each page points to its own specific url.I thought this code is a good place to start but i am a newbie and need some guidance. Any ideas.
Its really a good post . But I am not able to make it in my blog. Can you please mail me the content change ,which would be really helpful.Thanks in advance.
Thanks guys. Finally somehow I did it . Got working . Check my blog gazolinia.blogspot.com
Code I added is
%title>%data:blog.pageTitle/>%/title>
%b:if cond='data:blog.pageType == "item"'>
%meta expr:content='data:blog.pageName' name='Description'/>
%/b:if>
Replace all % with <.
Thanks for the awesome tips. I tried to follow the tips, but my blog showes as follows on the google search.
AskVP Blog Archive. ▼ 2009 (25). ▼ April 2009 (17). Unix/Linux Free Antivirus for Unix/Linux Platform ... Microsoft Sharepoint Designer 2007 is Now free ...
askvp.blogspot.com/ - 62k - Cached -
Please advise.
thanks in advance.
Good info.
But adding keywords i necessary, because mega tag analyzers and other search engine tools compare the keyword with site content in the home page.
Which always changes in case of blog. So 100% relevancy of keywords is impossible
http://infosyndrome.blogspot.com
Great information,
Worked like a charm (:
http://mazeltov50.blogspot.com/
Thanks! Great info! You may want to try this out too!
b:if cond='data:blog.pageType == "item"'
meta expr:content='data:blog.pageName' name='Description'/
/b:if
Insert "<" at before the first letters of every line and ">" at the end
Luna Online Philippines
I'm a newbie to blogging for money. I'm trying to design an affiliate blog. Please check out my blendmonster.blogspot.com blog and leave some comments that can help.
I love this site layout good job!
thanks for your good post i love your posts
http://worldz-technology.blogspot.com/
Hello kranthi wil it harm if i add meta tag for all my post. I mean wil it hurt my google ranking. If not how about adding meta tag of my recent 20 posts. As i am maintainin an automobile blog and recent stuffs are searched more... Pls reply.
TOP GEAR
http://the-top-gear.blogspot.com
Thanks so much, very usefull your post! :)
thank you so much!
hey nice blog i really enjoyed it really nice post too really i enjoyed goin through it with regards
Hi,
Thank you for sharing this. I have a question, after I have submitted it and saved template, when I check it, they have a '"' sign attatched to them, please see below for example:
Is this ok or is there some fault?
Thank you and any help appreciated =)
thx for the code mr david and thx for arranging the codes mr kumar
thank you for the code it works...
It is very good for SEO (Search Engine Optimisation) . Actually, why we are adding meta tags is to tell search engines what that page is all about... but, using same meta tags to all of your blog posts lessens the search engine rankings and traffic little bit.
very informative
hi dude, i imagine if we are (blogger user) can create script for this bored manual meta :D
Great info and tips, i have bookmarked your blog and i will add meta tags to my post soon, thanks for sharing the info.
thanks for sharing
Nice write up to add different mega tags to difference blog post. Indeed a great job.
hey kranti here is a 6 lines but when i added for another post is there any need to be add first 3 lines again that means meta data for homepage again of not
Do we have to keep on adding the Meta tags for each post one below the other and so on? (I want to add meta tags to all of my post)
Then the list will be too long, are you sure this will not harm my blog?
Now this is really a great pain for blogger user. I hope google will one day develop a better SEOing for blogger. This is a great pain.
Thanks for tips.I use for my blog it Great++
thank you, i just tried that. very usefull info.
thanks for information sir. i have a blog, google indexed all my pages but yahoo and bing don't indexed, any idea for yahoo and bind index my page.
thanks in advance.
Th4t be an epic da shizzi4 post, th4nkie 4it & in da futures we'll be seeing more of it
this doesnt work for me...on meta tag analyzer tools it doesnt find any description and no tags...??what should i do
nvm man,i just had to replace page.url instead of pagename
I don't know what to say. Because it is really hard to put at every and each post. I have more than 50 different pages in my blog. But thanks for creating this post.
Thanks, but it's quite pain stacking if you have a lot of posts.