Fix Blogger BlogSpot Canonical URL Problems

Blogger team has automatically add the canonical link element to all blogger templates by default in order to avoid duplicate content issues on two different domains in search engine optimization. This problem arises in social networking buttons and Facebook comments plugin. Most of readers complained that their Social Counters showing wrong counts and Facebook comments are not showing after blogger rolled out country specific Url So in order to solve that problem you need to make few changes in your template. This tutorial is only for those who are using free Blogger domain like yourblog.blogspot.com. Custom domain users does not have this problem


Solvig Other Social Counters Canonical URLs Problem'

  • Go to Blogger Dashboard 
  • Click on DropDown Menu and select Template
  • Backup your Template before making any changes to your blog
  • Now Click on Edit HTML --> Proceed --> Expand Widget Templates
  • Press Ctrl + F and search the code shown below

expr:href="data:post.url"


  • Replace above code with the code shown below


expr:href="data:post.canonicalUrl"

Fixing Facebook Comments Canonical URL Problem


  • Find the similar code as shown below

<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' migrated='1' width='520'/>


  • Now replace data:post.url with the code shown below

data:post.canonicalurl

  • Now save your template

Like it? Share it.

1 comment

29 April 2012 at 00:22

Loves Your post.

Click to Add a New Comment

  • If you're asking a question click on Subscribe By Email link, on the comment form, to be notified of replies.
  • Do NOT add links to the body of your comment as they will not be published.
  • Only the comments posted in ENGLISH will be approved.
  • If you have a problem check first the comments , maybe you will find the solution there.