Fix Duplicate Meta Description Error in Posts and Homepage
- Check out: What is Meta Description?
How to fix duplicate Description error?
Last year we shared the code that will install dynamic search description option even in custom templates. If you are using that code then its extremely easy to fix the error. If in case you have not yet added that code or you use Blogger Template's styles then you may simply add the code I will share in today's tutorial.- Read this: Why Meta Description is not showing up in Custom templates?
- Go To Blogger > Template
- Backup your template
- Click Edit HTML
- Search for the following code:
<b:if cond='data:blog.metaDescription != ""'>Note: If you can not find this code then do not panic and skip this step and follow step#5.
<meta expr:content='data:blog.metaDescription' name='description'/>
</b:if>
5. Now replace the above code with following set of codes:
Note: For those of you who could not find the code in step#4, then you may simply copy the above code (in step#5) and paste it just below <head>
<b:if cond='data:blog.url != data:blog.homepageUrl'> <b:if cond='data:blog.pageType != "item"'> <b:if cond='data:blog.metaDescription != ""'>
<meta expr:content='data:blog.metaDescription' name='description'/>
</b:if>
</b:if> </b:if>
- The purple code will disable duplicate occurrences on homepage
- The green code will disable duplicate occurrences on Post Pages
Need help?
I hope this improvement will further optimize your blogspot code structure and will help robots to better crawl and index your content. Please let me know if you needed any help. A great surprise is coming for those who live in our city. We are coming in public again with several new business strategies and ideas. Would love to see you guys this time. Peace and blessings buddies :)Open Comments
Close Comments
Post a Comment for "Fix Duplicate Meta Description Error in Posts and Homepage"