How to show description meta tags in custom templates?

How to show description meta tags in custom templates

As we know in the New Blogger SEO Options That Is Really Great that was introduced by blogger that there are many new seo options that Google added to it blogging service as they are trying to be the top in there niche and from this new options was meta description that you can add to your main blog and also to every post that you write but the problem that many people use the custom templates as in our blog and they don't appear in it so here I came with a solution so that any meta description will be added directly by only adding 3 lines code so lets see how.

how to add meta description tag to your blog

I have added all the information about this in the previous post New Blogger SEO Options That Is Really Great and I will not add it again here so that it would not be put 2 times.

How to show description meta tags in custom templates?

Lets see now how to make description meta tag appears in custom templates:

  1. Go to template then click on edit html
  2. After <head> add this simple code


<b:if cond='data:blog.metaDescription != &quot;&quot;'>
  <meta expr:content='data:blog.metaDescription' name='description'/>
</b:if>
You may now delete any meta description you have added before, if you have added the code as in the on page optimization post series then remove the code that is related to description which will be like the following code:



<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='YOUR BLOG DESCRIPTION' name='description'/> </b:if>

Last Words:

I hope you liked this post and your description is now appearing in search engines. Try from now to write meta description to your new posts and old if you can as a well good description can make your blog ranks higher and higher in search engines, so write one or at most 2 lines that can attract search engines robots as well as your readers. Peace and blessings everyone.

Categories:


0 comment:

Post a Comment