Solve Problems Related To BlogSpot Canonical URLs

blogspot country specific urlsAs we mentioned earlier that Google has slowly started converting all blogspot blog URLs to country specific Domain addresses. Your visitors will see their country's top level domain (ccTLD) version of your domain. People living is norway will see a .blogspot.nr domain and those living in Pakistan will see .Blogspot.pk and so on. Blogger team has automatically added the canonical link element to all blogger templates by default in order to avoid its negative consequences with regard to search engine optimization. Everything seems normal except for social networking buttons and Facebook comments plugin. Most bloggers complained that the facebook comments are not displaying after blogger rolled in country specific Urls. Most social media counters can show wrong counts. So in order to solve all these problems we will need to make a slight adjustment to how your template is structured. The steps will be of course very simple and safe.

Caution!

If you are not experimenting any of the errors, problems and bugs I mentioned then you may simply ignore this tutorial and better drink a cup of coffee and watch the video on the right sidebar. :)

You may skip it also if you feel blogger will fix the problem itself very shortly because blogger team is responding quickly to these recent changes.

Solving Canonical URLs Problem

Correcting the bug in Facebook Comments

  1. Go To Blogger > Deisgn > Edit HTML
  2. Back up your template. You must always download a copy of your template before making any changes.
  3. Search a similar code like the one below:

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

 

     4.   Replace data:post.url with

data:post.canonicalurl

 

     5.   Save your template and check to find everything back to normal.

Correcting Sharing Counters

Search for your sharing counters main code inside your template and where ever you find the following code:

expr:href="data:post.url"

 

Replace it with this:

expr:href="data:post.canonicalUrl"

 

Need help?

What did here was  replacing the dynamic url for posts with the canonical dynamic post url. This will not confuse the social networking sites in choosing the correct url for your blog which is your primary domain. If you are facing any problem related to country specific domains then feel free to post your comments. I would strongly recommend that buy a custom domain as soon as possible, instead of depending on a free domain which has no marketing value. Peace and blessings pals! :)

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »