2009-03-27

Image

How to add different Meta Tags to your blogger posts ?

for those who don't know about Meta Tags , let me introduce you What is a Meta tag ?
A meta tag is an element of HTML that often describes the contents of a Web page, and is placed near the beginning of the page's source code.Meta Tags are not displayed in the page . Search engines use information provided in meta tags to index pages by subject . Most common keywords are Description and Keywords .
Normally we add meta tags to the entire blog in Blogger so that search engines understand what we are writing about . But it will be better if you can add meta tags at the post level . So How to add different Meta Tags in your Blogger posts ?First I will tell you How to add meta Tags to your Blogger blog ?

  • Login to your Blogger account , and Navigate to Layout --> Edit HTML . Find the line below.

<b:include data='blog' name='all-head-content'/>

  • Now add the following piece of code below the above line and replace YOUR-BLOG-URL with your blog main page URL .

<b:if cond='data:blog.url == "http://YOUR-BLOG-URL/"'>
<meta content='DESCRIPTION' name='description'/>
<meta content='KEYWORDS' name='keywords'/>
</b:if>

  • With this you are done adding meta tags to your blog . Now we will add different tags to your Blogger posts . Add the following piece of code below the code which you added above and replace YOUR-BLOGPOST-URL with the specific URL of the post for which you want meta tags to be added .

<b:if cond='data:blog.url == "http://YOUR-BLOGPOST-URL"'>
<meta content='Type your post description here.' name='description'/>
<meta content='Type your post keywords here' name='keywords'/>
</b:if>

  • Repeat the above step for all posts to whom you want unique meta tags to be added and save your template .

0 التعليقات:

Total Pageviews