Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Monday, February 6, 2012

Solve Problems Related To BlogSpot Canonical URLs


Pin It

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 enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

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 »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

33 comments:

Comment Page :
ndark on 12:11 AM, February 06, 2012 said... #

forgot to add jump break

Admin on 12:15 AM, February 06, 2012 said... #

Mohammad one of my blogspot blog is having the below error.how to fix it.
We are sorry, but we were unable to complete your request.

When reporting this error to Blogger Support or on the Blogger Help Group, please:

Describe what you were doing when you got this error.
Provide the following error code and additional information.

Mohammad Mustafa Ahmedzai on 12:15 AM, February 06, 2012 said... #

@ndark
thanks for reminding. :d

Haider Afridi on 12:39 AM, February 06, 2012 said... #

What abt Custom Domain users ? we have to do this ?

Mohammad Mustafa Ahmedzai on 12:43 AM, February 06, 2012 said... #

@Admin
Where exactly are you seeing this error? While saving your template?


@Haider
Correct bro. This tutorial does not apply to bloggers with custom domains. :)

yatheesh on 8:28 AM, February 06, 2012 said... #

should i do it to my blog http://mybestfavourites.blogspot.com/ ?

Admin on 11:00 AM, February 06, 2012 said... #

@Mohammad No.
When i Visit my blog i see the message.i cant see my blog
all-celeb-pics dot blogspot
help plz

Prince on 11:57 AM, February 06, 2012 said... #

How can we Fix validator.w3.org/ FREE.

jatin rohilla on 1:41 PM, February 06, 2012 said... #

hey mohammed i can't find the following codes :(... now what to do???
if i buy custom domain den???

http://nirmalmaza.blogspot.in/

Felix Waweru on 1:48 PM, February 06, 2012 said... #

Hello Mohmd, the 'rel=canonical' tag is missing but I can see this code 'b:include data='blog' name='all-head-content' code. Now, when I add this code link expr:href="http://fmwaweru.blogspot.com/" rel="canonical"/> below the <head>, I get this error undefined LHS of numeric is null before 29 in http://fmwaweru.blogspot.com/). What could be the problem? Also, if I've this code <b:include data='blog' name='all-head-content'/> present do I need to add the canonical tag?

Muaz Faris on 2:56 PM, February 06, 2012 said... #

wow, new thing for me.. i just know about it.
thanks very much

MLM Training India on 4:17 PM, February 06, 2012 said... #

great post and very helpful...

FAIZAN ALI on 8:22 PM, February 06, 2012 said... #

Thanks once again great post Faizan Ali Just Posted Google Rolled Out First PageRank Update Of The Year 2012 (February 06)

Zulfiqar Ali on 9:52 PM, February 06, 2012 said... #

I already solved this problem after viewing your post. Keep sharing.

Ammar Ali recently posted 40 Best Free Great Looking Blogger Templates of 2011

samsexy98 on 11:45 PM, February 06, 2012 said... #

Got a Nightmare today with Google+. Ghosh!!! they banned me.. what the hell??

DR.....LOLZ on 12:44 AM, February 07, 2012 said... #

PLZ ELABORATE HOW CAN WE MAKE OUR POSTS MORE SEO FRIENDLY WITH META TAGS MANUALLY:)

Auren Lengkong on 2:39 AM, February 07, 2012 said... #

Hi Mohammad when I think of the canonical does it also has the same function as rel="nofollow"?

DR.....LOLZ on 3:42 AM, February 07, 2012 said... #

one more thing i want to hide certain pixels from bottom of my blogger like wen i removed navbar there was a gap left between i used this code
body
{
margin-top:0px;
position: relative;
top: -50px;
}
can this be modified to hide pixels from bottom too plz help:)

$hubham Meht@ on 11:39 AM, February 07, 2012 said... #

Nyc post yr i jst love ur Blog... Nd recomende it to other's..<3

How To Save Ur Blog From Sopa/pipa

samsexy98 on 11:41 AM, February 07, 2012 said... #

@$hubham Meht@

Another misleading anchor text.
I am like a crawler on MBT from which you cannot hide :p

MMK The Rocker on 12:52 PM, February 07, 2012 said... #

As salamu alyikum mustafa bhai!

SO what you decided to keep your New Wordpress title ???

I think it will be (OBT)ourbloggertricks.com or (MWT) mywordpresstricks.com

mywordpresstricks.com domain still available on godaddy.com

Allah hafiz

Abdul Basith on 9:51 AM, February 08, 2012 said... #

Thank you very much friend! its working perfectly.

one doubt, how to change home page url code "data:blog.homepageUrl" into canonical url?

Mohammad Mustafa Ahmedzai on 12:51 AM, February 09, 2012 said... #

@yateesh

Only if the counts of your sharing buttons are acting abnormal. Showing wrong counts

@admin
Unfortunately May be it got removed by blogger. Since the blog shares celebrity pics so there could be a violation of Image copyrights pal. Can you access it via dashboard? Your posts? If yes then please go to settings and export/backup all your posts.

@jatin rohilla
As I mentioned you don't need to add it if everything looks fine with your facebook plugin and sharing counters

@Felix
I have updated that code at Blogspot blogs 302 redirected

It will work just fine now. :)

@SAm
Heard it for the first time. Does it happen even there? :p

@Auren Lengkong
No body it has a total different effect as I explained in my earlier posts. Nofollow concerns PageRank and canonical concerns issue of duplicate content.

@Dr Lolz

Remove top: -50px; from your body class. :)

@MMK The Rocker
We did purchase mywordpresstricks.com but we changed our idea and this new blog is a surprise which we will disclose next week. :)

@Abdul Basith
We can do that but we don't need to do because only the facebook plugin and sharing counters are having problem and not the homapage elements.

DR.....LOLZ on 3:12 AM, February 09, 2012 said... #

thanks friend tried as you suggested but no avail it just shows 50pixels above header image n hide those pixels if i put top: -50px; in the code.but i wanna hide 50 pixels from bottom from attribution side.plz do help

Bhavesh Pamecha on 9:49 AM, February 09, 2012 said... #

@Mohammad Mustafa Ahmedzai

Yea they banned me because I had a word "Sexy" in my name. Come on I am Sexy.. What's your problem? :p

I revived my profile and everything is fine, just I can't call myself as "Sexy". Now I am with my original name.

Admin on 9:25 PM, February 09, 2012 said... #

@ Mohammad
thanks problem solved. i simply removed the cononical code.and i can access my blog now.

KhAnZ on 10:36 PM, February 11, 2012 said... #

MediaFire MKV Movies Small Size High Quality, Hd Prints, Tv Shows

Shivam on 8:28 AM, February 12, 2012 said... #

I have two problems with this.

1st one : My sharing counters are showing "0". You can see it in the like it share it widget of mine in the sidebar.

2nd one : The recent posts widget at the bottom in the footer is not showing.

When i go to freen8apps.blogspot.com/ncr it's everything all right but it shows the above stated errors in freen8apps.blogspot.in ...

Please help

ManiVasagam M on 12:22 PM, February 13, 2012 said... #

i'm facing drop in traffic to my blogs because of this change made by google,Can i use this method to get back my traffic..

StudentsCrunch

நிலவன்பன் on 10:08 PM, February 13, 2012 said... #

///The comments plugin requires an href parameter./// this is the message iam getting fb comments plug in

Joemill on 9:07 AM, February 23, 2012 said... #

hi guys. i need your help. i have just migrated my Blogger blog to my own domain (GoDaddy). my problem is that my Facebook/Twitter/Google share stats are reset to zero. is there a way to regain those? thanks a bunch!

Sahil on 1:41 PM, February 29, 2012 said... #
This comment has been removed by the author.
Sahil on 1:02 PM, March 04, 2012 said... #

At First when i applied it, it gave me hrf parameter error, which i resolved by adding migrated='1' to code as shown above. (hope it help to others) but when i'm done, its giving me warning belw comment box "Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features."
Then i realized, i am missing
<link href="http://blog-name.blogspot.com/" rel="canonical"/>
below head. which mustafa bhai told in his earlier post. i applied it and viola !! :)

And mustafa bhaai. i've emailed you so many times regarding "readmore" issue of monop template. its ruining my blog. i am really very disappointed at this from you bro :(

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |