Solve Problems Related To BlogSpot Canonical URLs

Monday, July 16, 2012 0 comments

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! :)

Source: http://www.mybloggertricks.com/2012/02/solve-problems-related-to-blogspot.html
Share this article :

Post a Comment

 
Copyright © 2012. Blogger Tips For Beginners - All Rights Reserved
The information is compiled from various sources on the internet