Friday, December 30, 2011

Automatic META tag and Decription


This technique is extremely useful for onpage optimization for each post we will have a meta description that is different from one post to another post without bothering to nambahin one-one on each post manually. In other words, meta description and keywords in each post will be automatically generated too. This is certainly a solution for my friend who had duplicate meta descriptions.

How to install the meta tag description and keywords of each post automatically I is classified into 2 parts, just follow buddies wrote one of the two ways below:
For those who have NOT previously put the meta tag description, just follow this way:
1. First of all you have to login to blogger.com continue to layout> edit html.
2. Wait until the maximum terload and locate the following code (use ctrl + f in firefox to look for):

  1. <title><data:blog.pageTitle/></title>  
3. Once you can remove and replace the above code with the following code:
  1. <b:if cond='data:blog.url == &quot;http://BLOGURL.blogspot.com/&quot;'>  
  2. <title><data:blog.pageTitle/></title>  
  3. <meta name='DESCRIPTION' content='HOMEPAGE DESCRIPTION'/>  
  4. <meta name='KEYWORDS' content='HOMEPAGE KEYWORDS'/> </b:if>  
  5. <b:if cond='data:blog.pageType == &quot;item&quot;'>  
  6. <title><data:blog.pageName/> - <data:blog.title/></title>  
  7. <meta expr:content='data:blog.pageName + ", " + data:blog.title + ", " + data:blog.pageName' name='Description'/>  
  8. <meta expr:content='data:blog.pageName + ", " + data:blog.title + ", " + data:blog.pageName' name='Keywords'/>  
  9. </b:if>  
4. Finish and save your template

For those who HAVE NEVER install previous meta description tag, follow these steps:
1. Are logged into blogger will? directly to layout> edit html.
2. In the edit html page, find this code:
  1. <b:if cond='data:blog.pageType == "item"'>  
  2. <title><data:blog.pageName/> | <data:blog.title/></title>  
The point my friend tuh find descriptions of the old code (which pairs you've never before), then removed all the code wrote a long description of it.

3. Once the code description and keyword meta tags are long removed replaced with the following code which is certainly more sophisticated, hehehe. .:
  1. <b:if cond='data:blog.url == &quot;http://YOURBLOGURL.blogspot.com/&quot;'>  
  2. <title><data:blog.pageTitle/></title>  
  3. <meta name='DESCRIPTION' content='YOUR DESCRIPTION'/>  
  4. <meta name='KEYWORDS' content='HOMEPAGE KEYWORDS'/> </b:if>  
  5. <b:if cond='data:blog.pageType == &quot;item&quot;'>  
  6. <title><data:blog.pageName/> - <data:blog.title/></title>  
  7. <meta expr:content='data:blog.pageName + ", " + data:blog.title + ", " + data:blog.pageName' name='Description'/>  
  8. <meta expr:content='data:blog.pageName + ", " + data:blog.title + ", " + data:blog.pageName' name='Keywords'/>  
  9. </b:if>  
4. Done, Save your template

0 comments:

Post a Comment

Updates Via E-Mail

Featured Post 3

Labels