Sunday, July 3, 2011

How to add meta keyword and description to blogspot

1. Switch to the Edit HTML tab of your template and find this line:

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

2. Add this code just below that line:

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

This was done to add META Tags to the main page of the blog.

3. Now add this code just below the code you add just now:

(b:if cond='data:blog.url == "http://YOUR-BLOG-URL.com/2008/08/bla-bla-bla.html"')
(meta content='Type you post description here.' name='description'/)
(meta content='Type, the, post, keywords, here' name='keywords'/)
(/b:if)

Replace http://YOUR-BLOG-URL.com/2008/08/bla-bla-bla.html with the URL of the specific post you want to change the META Tags of.

4. Repeat Step 3 for as many blog posts you want to have unique META Tags for.
Please change every "(" to "<"

No comments:

Post a Comment