Sometimes ago, Blogger decided to offer their users the possibility to have a mobile version of their blog just out of the box, with no special configuration required. Mobile users pointing their browser to a mobile-enabled blog will just land to the mobile-friendly version of the site, as simple as that. The trick is a script running while loading the page that catch from the user agent the device model name and in the case of a handheld device, it adds a ?m=1 at the end of the url to have the proper redirection.
So far so good, I would say, but no configuration required also means no possibility to make any customization to the template and this is where the conflict with Disqus arises.
When you install Disqus in Blogger, you are just adding another widget to your layout. This is a simple HTML/Javascript widget that is actually hiding the original comment div and adding to the DOM the Disqus Thread with all its frills. When your desktop layout is converted in the mobile version only a few standard widgets are ported and obviously the Disqus one is dropped.
This is the solution
It looks like a showstopper, but there is a quite simple way out to force a widget, even if it is not a standard one, to be included into your mobile version. Of course Blogger doens't guarantee that your custom widget will render and work on smartphones, but if you configure Disqus to use the mobile theme for handheld you won't have any problem.
Blogger developers added a new property to the widget object; the mobile property can assume three different values: 'yes', 'no' and 'only'. For non-standard widget, the mobile attribute is set to no by default, but actually nothing is preventing an advance user from editing the HTML template and setting the property to 'yes'. In practice, you go to modify the HTML of your template, you save a complete backup first, you expand widget template and look for the Disqus box. The only required change is to add the mobile='yes' line as highlighted in the code snippet below.
<b:widget id='HTML3' locked='false' mobile='yes' title='Disqus for unico-lab' type='HTML' >
Of course, we all hope that Disqus will change their widget to include this line automatically with no need of editing for the final user.
If you have a custom template...
The procedure described so far can be used more or less straightforward if you have a standard template and you use the Disqus widget. If you have a heavily customized template like the situation reported by DarkUFO in this comment, you need some more hacking to get Disqus on mobile.
When helping DarkUFO, my approach was to take out from the template all the scripts related to Disqus and put them all together into a new HTML/Javascript widget. After that, I've modified the template adding the mobile='yes' property to the just added widget.
In case you need some help with this hacking, try asking for some help here below.
Known issues
Everything working? Not really, there are still a few issues I've found and that need to be fixed possibly by some other smart developers.
1. The first one is that the hide and replace mechanism of Disqus is not working when displaying the front page in the mobile version. This is actually not too much of a problem because when you click on the "# comments" links you are anyway redirected to the correct blog post but not to the comment section and the number of reactions is missing.
2. The second one is a bit more tricky and is with the "Link to comment" included into the email users are receiving with new comments. This short link is pointing to something like:
http://your-blog.blogspot.com/your-post.html#comment-123456
and when you click on it from your phone, Blogger will append the "?m=1" to the end and you will land to the desktop page. In fact the correct link should be something like
http://your-blog.blogspot.com/your-post.html?m=1#comment-123456
with the mobile parameter in between the post URL and the anchor text. This is very likely a problem that should be fixed by Blogger and not by Disqus and tthat's why I've submit a question to the blogger help forum you should consider to support if you are having the same issue.
If you find this helpful, share it!
Hi! My name is Giannii and I work at Disqus. I just read your post and we definitely appreciate your efforts to insert Disqus into Blogger mobile. This currently does not work because Blogger no longer allows widgets on the mobile theme. I just wanted to let you know we're aware of this and we're working with Blogger to get this back up and working.
RispondiEliminaHi, actually it is working if you just make the small change I was mentioning. I'm writing this comment from my phone!
RispondiEliminaI am trying to do something similar using IntenseDebate and the blogger mobile theme. I named the IntenseDebateWidget so it's easier to find in HTML, expanded widgets, added the mobile='yes' line, () but this is not working. Any thoughts?
RispondiEliminaHi Andytizer and welcome on unico-lab. Can you double check that the widget is getting to the mobile version? Open your blog from the desktop browser manually adding "?m=1" at the end of the URL. Then look at the HTML code and check if the InteseDebateWidget is there. If not, then you probably made a mistake while editing the template. If it is there, but doesn't work, then you should forward your question to IntenseDebate.
RispondiEliminaI'm very curios, let me know hot it goes.
Hi thanks for the response. I have reenabled the mobile theme on my blog, and I have a post here:
RispondiEliminaDesktop (has a couple of comments):
http://www.shinyhacks.com/2010/08/north-london-dim-sum-interactive-map.html
Mobile:
http://www.shinyhacks.com/2010/08/north-london-dim-sum-interactive-map.html?m=1
Looking at the HTML, there is no widget there. Should the mobile='yes' tag always make the widget appear in the mobile template? Or does IntenseDebate need to do something on their end.
From my point of view, the mobile='yes' should allow any widget to get to the mobile version. Then it may be it doesn't work, but at least it should get there. Don't know if you get what I mean.
RispondiEliminaIn your case, it seems that the widget is not getting to the mobile version, while it is there in the desktop one. One point, I don't know how intensedebate integration with blogger is working; is it just a matter of adding a widget or you need to modify your template somehow?
That could make a difference...
Thanks for looking. I will bring it up with IntenseDebate. The integration involves sending and receiving the full HTML of your template. There is a widget that appears in the template designer. However, I will investigate to see if they added any hidden widgets.
RispondiEliminaOtherwise you should consider migrating to disqus :)
RispondiEliminaWhen we moved away from blogger comments, we were unsure about going to ID or Disqus. At the end we chose Disqus because of blogger sync.
If you get to a solution with Intense Debate mobile integration, do you mind coming back here tell us how you did?
Thanks!
Fantastic workaround. Disqus now works perfectly now for mobile devices on my blogger blog. Thanks!
RispondiEliminaGlad it helped!
RispondiEliminaCan't wait to get home and try this!
RispondiEliminaLet us know if it is working for you as well!
RispondiEliminaDid not work for me. Edited the code to add mobile='yes' but nothing has changed on the mobile site (as far as I can tell). Maybe my phone's cache is preventing it from picking up the new layout? I don't know. If anyone wants to check and let me know from a third party point of view, I'd appreciate it. http://kooztop5.blogspot.com
RispondiEliminaI can confirm that on the mobile version you still have the native blogger interface. You can easily check it opening the http://kooztop5.blogspot.com/?m=1 in your desktop browser and then looking at the source code.
RispondiEliminaAre you sure about the change? Do you mind sending me via email your template? I won't abuse of that, honest!
Working now--thanks for the help!
RispondiEliminaGreat! That's a very good news!
RispondiEliminaHey Toto,
RispondiEliminaI wonder if you could help me with this. I have quite a customized blog and don't actually have that code on my Blog but I do run Disqus.
If you can help my email is darkufo@spoilertv.com and maybe I can send you my template :)
can you send me (il.gluista[AT]gmail.com) your template with all widgets?
RispondiEliminaI can't guarantee it will work, but we will make a try at least!
Thanks Toto, email on it's way ;)
RispondiEliminaI've added a section to this post to explain the general idea with customized template.
RispondiEliminahttp://unico-lab.blogspot.com/2012/01/how-to-make-blogger-mobile-working-with.html#custom
As I said there, the idea is to remove the disqus related scripts from your template and put them into a HTML/Javascript widget. Then you can add the mobile property to the newly created widget. In case you want/need from that script you can even modify the DOM adding divs and other HTML entities where you like.
I don't want to put here in the public the code snipped extracted from your template, but I'll send it to you via email.
Let me know...
Thank you so much for taking the time to do this
RispondiEliminaGreat work around that works perfectly on our blog. Thanks for your help.
RispondiEliminaglad it worked for you too!
RispondiEliminaThis post is having a lot of lovers! Great!
You have shared the great information at here. Because I have already planing to make make my blog-spot work with the Disqus. For that I have do lots of research and now finally I have go the thing.
RispondiEliminamobile signal booster
I got it ... !!!!
RispondiElimina:-D thanks ...
you're welcome!
RispondiEliminaThanks toto, for the easy fix!
RispondiEliminaI've been missing out on comments from 15% of my visitors for too long.
Great!
RispondiEliminaThis article is very helpful for me regarding mobile users for Disqus. Here I found basic information and I would try this method in my blog.
RispondiEliminaQuite a easy fix, Disqus directed me here as I was facing some problem on BlogspotComments - Disqus syncronaization. Implemented, will see and come back to tell the experience :)
RispondiEliminaIt's actually working on Mobile...some problem is with width of the app and yes a few comments were missing...but it worked! Super Thanks :)
RispondiEliminagreat!
RispondiEliminaHello! I can not find any disqus wording in my template on blogger except at the very bottom and it doesnt have any mobile wording. Please help :-)
RispondiEliminaCiao StylePoise! First of all bu sure to tick the "expand widget template" option when you visualize the HTML source of your template.
RispondiEliminaTo find the Disqus widget try to search for "disqus_shortname" (without quotes) and you will a few istances of these but all in the same widget block. Go back a few lines and you will find the code reported into the article. I've checked the source of your page, the widget is labeled HTML3.
In case of troubles came back and we will find a way out!
Thanks toto for such a prompt response. I did find the disqus shortname wording and html3 wording all in the same block but nothing regarding mobile. Would it be benificial for me to copy and paste what I see here..so you can see what I see?
RispondiEliminaThanks Again!
You shouldn't find any mobile tag. You need to add it!
RispondiEliminaIf you paste here your code i'll adapt it for you!
you just need to replace this line:
RispondiElimina<b:widget id="HTML3" locked="false" title="Disqus for Style &amp; Poise" type="HTML">
with this one
<b:widget id="HTML3" mobile="yes" locked="false" title="Disqus for Style &amp; Poise" type="HTML">
and leave the rest untouched!
Nice finding...
EliminaIt worked!!! Thanks for all your help! :-)
RispondiEliminaGreat! Don't forget to share it! it may help somebody else!
RispondiEliminaHey Toto!
RispondiEliminaI am back again...with somewhat of a different problem which I thought the above mobile wording issue would rectify but it hasn't. All of my comments stil laren't posting to my blog posts. When I click on the comments tab in blogger...I see the comments people have submitted but they're not showing in disqus and on my blog. I've contacted disqus have yet to hear from them...any insight into this issue? Is there someting i need to disable in my blogger comments?
Thanks Again for All of your help :-)
Roni
I've just visited the mobile version of your blog, but Disqus isn't there! Are you sure you added mobile='yes' to the widget?
RispondiEliminaHmmm...that's so odd. I def. added what you told me to and after I added I checked my mobile version to make sure it was there. Hmm...now I am even more puzzled. Is it possible for me to email you my template so you can see what I see?
RispondiEliminaHmmm...that's so odd. I def. added what you told me to and after I added I checked my mobile version to make sure it was there. Hmm...now I am even more puzzled. Is it possible for me to email you my template so you can see what I see?
RispondiEliminaLet's open a new thread... this is getting crowded. Send me your template to my blog email: il.gluista@gmail.com
RispondiEliminaStylePoise, shame on me! I was looking at the wrong blog!!! Yes I can see disqus from mobile and, if you don't mind, I'll leave a test comment there (delete it afterward).
RispondiEliminaYeeeaaaa :) thanks ! It works !
RispondiEliminaI have trying to get this to work forever. THANK YOU for such a simple explanation!
RispondiEliminaThanks!
RispondiEliminaThis is totally off topic but I'm so proud of me right now ^^ I was actually able to do this even though I am FAR FAR away from being advanced! YEAS!
RispondiEliminaThank you very much!!
very happy it helped you!
RispondiEliminaCan't find the 'mobile= ' script
RispondiEliminavar disqus_shortname = 'isyncblog';
RispondiEliminavar disqus_blogger_current_url = "";
if (!disqus_blogger_current_url.length) {
disqus_blogger_current_url = "";
}
Please help
don't look for "mobile", it's not there yet, you need to add it.
RispondiEliminaok thanks a lot
RispondiEliminajust add mobile='yes' after locked="false"
RispondiEliminaGot it thanks
RispondiEliminawelcome! the new chat like feature is amazing!
RispondiEliminai know
RispondiEliminaFrom where did you get the twitter widget ??
RispondiEliminadirectly from twitter. have a look at here:
RispondiEliminahttps://twitter.com/about/resources/widgets/
you need to customize it adding the search terms relevant for your site/blog
RispondiEliminaSuch an easy fix! Thank you!!
RispondiEliminaIs the change that you recommend above (mobile = yes) something that is changed in my Blogger settings or on my mobile device? Sorry, I only LOOK smart.
RispondiEliminaOy..Donna...this blog is out of your league..what are you doing here in a technical blog discussion? I know....Engagio got you there. Sorry!
RispondiEliminahi Donna, you need to apply the change to your blogger template. your mobile device will adapt seamlessly :)
RispondiEliminaActually this time someone from Disqus sent me here to try to fix a problem. But I do have that "Dorothy, you're not in Kansas" feeling.
RispondiEliminaHi toto -- I realize now that the problem is that I have a customized template, but actually think I fixed the problem. The new design has an option to select desktop version to appear on mobile. This fixes it for now.
RispondiEliminaThanks so much!
glad you get on the target one way or the other
RispondiEliminaIt's funny that there's a Toto in the thread. Maybe that inspired your Oz analogy?
RispondiEliminaThank you Toto, it's work perfectly now :)
RispondiEliminagreat
RispondiEliminaThank you, thank you, thank you. I know very little code and have word docs saved with codes I've learned (so i can copy, paste, copy paste..LOL), but your explanation was so simple, that I decided to try this one myself. Of course I backed up everything, then did it..and it works --yippie!
RispondiEliminathe explanation was simple because the fix was trivial, what wasn't easy was to find it out.
RispondiEliminaanyway, I'm glad it worked for you too and don't forget to share the knowledge, it may help many others :)
That's a simple useful code. Thanks for sharing.
RispondiEliminaedongzkisiete
welcome!
RispondiEliminaplease can you help we with that, i have a customized theme for my blog and the problem is the same like here i dont find any widget named <b widget... or anything where disqus has mobile option. i use disqus on my blog and it works, but on the mobile default themplate the default one is only there, no disqus. can i send you a html of my blog and can you help me?
RispondiEliminadear @DinoBorogovac:disqus, I've just visited your site via mobile and I see the disqus widget. I left a comment on your last post using my Samsung Galaxy.
RispondiEliminaIt looks like you fix it!
i fix it only the half way. the problem is with my windows phone only the "custom mobile blogger template" disqus works 100% but on the custom the theme is messed up, all my "post text" goes beyond the screen :( and i dont know how to fix that, i switched then to "simple mobile blogger template" and the text is now ok, but on my windows phone 7 the disqus form says "your browser is currently not supported in disqus" that funny because with custom mobile theme it works but i have no acces to it and how to edit it :(
RispondiEliminaso it's probably easier to fix the text width in mobile. this is set by mobile.background.size, be sure it is properly set.
RispondiEliminaunfortunately I'm unable to help you debugging since I don't have a wp7 :)
thx, i try now to fix the font, i have only body.mobile{ background-size: auto;} do you mean that one? does the parameter "device width" work with background-size?
RispondiEliminain my case yes!
RispondiEliminagreat......its working
RispondiEliminaThank you for this super easy html fix. I had a more convoluted add that worked for the older Disqus version but just recently stopped working with the upgrade to Disqus 2012. Since the Disqus website is completely non-intuitive and their customer service poor at best, your post really saved me hours of banging my head against the wall. I'm really quite appreciative!
RispondiEliminahappy it worked for you too!
RispondiEliminaThis post was SO helpful. Thank you for the information! This solved the biggest problem I was having with Disqus. you rock!
RispondiEliminathx!
RispondiEliminaThanks a lot for your tutorial. I've tried it successfully on the mobile version of my blog :)
RispondiEliminagreat!
RispondiEliminaI also had the same struggle here :)
RispondiEliminaThanks for the help @toto_unicolab:disqus
Thank you very much!!!
RispondiEliminawelcome!
RispondiEliminaThanks for the help on this one - I was having the same issue. I was referred to this post & thread by the Disqus support team & it was very helpful!
RispondiEliminaI'm happy it worked out for you too!
RispondiEliminaI'm having the same problem with comments not showing on blogger, which includes a mobile template. But when I went to change to "mobile='yes' in the main template, I find no evidence of that code, not even "mobile='no' Disqus suggested i disable the comments on the mobile site, but I'm thinking most of my comments are coming from mobile devices. So that approach would also be counter productive. Does anyone have any other ideas. It seems as if my template is incomplete for the Disqus mobile code.
RispondiEliminaThanks for any help.
Well, I think I answered my own question. I didn't realize that the "mobile=...' was not there at all, so I had to add the line of code. I think my comments are going to work now. Will know more after I get a few new comments.
RispondiEliminaExactly! do you want me to try leaving a comment from mobile?
RispondiEliminaLeaving a comment would be great if you don't mind. This has been driving me crazy all summer. Earnest.
RispondiEliminaSubject: [unico-lab] Re: unico-lab: How to make Blogger Mobile working with Disqus
here you have it! http://earnesthart.blogspot.it/2012/09/hello-iphone-5-with-lightning-connector.html#comment-657408952
RispondiEliminadelete it, if you don't want to mess up your comment thread.
Thanks so much for your help :)
RispondiEliminadid this work? just had the same thing, went to find the code didn't see the mobile option so I added it! hopefully it works :)
RispondiEliminaI think it works, but it's hard to say for sure, because the comments interface remain an area of frustration. Now most of my comments are coming from outside Disqus and with no official email address. They all have the username — Anonymous — and most are spam. When I import the comments from Blogger into Disqus, they all show my avatar instead of the user that created the comments. Good luck with your comments project and I your your experience is better than mine.
RispondiEliminaI'm not sure I got your comment. Anyway, if you just imported all your previous comments to Disqus, it is normal and unavoidable that they look as coming from somebody outside disqus.
RispondiEliminaThe problem with the avatar is in your settings. Indeed you can specify which avatar to use for users who don't have one from your dashboard on the disqus site. You probably entered your avatar instead the customized anonymus one.
In case you need more help, just ask! And don't forget that disqus developers are replying very quickly to questions made via twitter (@disqushelp)
Good luck!
Thanks for clearing up the confusion on which avatar to select for commenters. I had missed the mention that the avatar I needed to select in the profile was for users and not for my own posts.
RispondiEliminaSubject: [unico-lab] Re: unico-lab: How to make Blogger Mobile working with Disqus
You ROCK! BTW, Can I show show disqus comment count to blogger?
RispondiEliminain principle yes. I think that using the Disqus API you can get the number of comments/reactions for each thread, but I've never had the time to look into it!
RispondiEliminaGreat to see you're responsive. If possible, PLEASE try to make a disqus comment count for mobile + blog versions. I have tried so much but I fail everytime, adding even to my blog :\ This is pathetic! Can you help me? Probably, can we chat?
RispondiEliminaI'm going to work right now. you will have to wait a bit. maybe in the week end?
RispondiEliminaTake as much time as you can, but get it working :-) . I have my own template, which may cause trouble, but I know there will be a solution ;-)
RispondiEliminaReally nice tip:
RispondiEliminaIn my case I added mobile='yes' and it did not work (DISQUS did not show up in the mobile template)…
I'm using an iPhone and so I had to go to Settings => Safari => Advanced =>Website Data => Remove All. This solved the problem.
Hope this helps anyone having the same problem!
Best,
Leniel
thanks!
RispondiEliminaI've been trying to figure out why some of my blogger comments weren't showing up on Disqus and this solution works perfectly! Thanks a lot!! :D
RispondiEliminaI have a problem that my disqus comments are not showing sometimes it show but not everytime....plz help me regarding this issue
RispondiEliminamy disqus comment not appearing in my blog...sometimes it appears but not everytym...any help plzzzz
RispondiEliminaI've visited yours site and it looks like you have a very customized theme. First you need to make sure that the disqus script is loaded in the mobile version and from what I can see it is not. You can force your desktop browser to load the mobile version appending ?m=1 to the address.
RispondiEliminaThanks bro for your appreciation
RispondiEliminaI wonder if you can get this type of phone from the cell phone store in Scarborough.
RispondiEliminaHello friend! I read carefully your recommendation and did it on my blog. But if you access from a Mobile you’ll see “0 Comments” at the end of all articles and DISQUS signal keeps trying to open. I accessed your site from my Mobile (Android) and found that is possible to leave a comment perfectly. There is something I’m doing wrong. I’d like to have the same method to leave comments from Mobile that you have. Could you plese help me?
RispondiEliminaThanks you very much…
Rafael Baralt
Sorry, this is the link of my blog: http://raguniano.blogspot.com/
RispondiEliminaI've just left a comment from the mobile version on your blog... it is waiting for moderation :)
RispondiEliminavery very strange. it looks like that everything is working, but not on your phone. Can you try to clear the cache?
Bali Hotels : Disqus is the best commenting system.
RispondiEliminaI couldn't figure out the fix from the post above (no "mobile=" anything in my HTML), but this suggestion helped me. Thanks. Maybe consider adding it to main post.
RispondiEliminaThanks so much! This still works! :)
RispondiEliminaHi to every body, it’s my first pay a visit of this blog; this blog contains awesome and truly fine material in favor of visitors.
RispondiEliminaThanks for sharing this article, its been a really fun reading about
RispondiEliminathis. I had no idea about how much of our money goes to this stuff. I
head there is this place where I live bell
- Chinatown center that has some great deals and I'm going to
hit them up this weekend and see if I can get some good deals!
Thanks so much for posting this! I just switched from Intense Debate to Disqus because Intense Debate was not mobile friendly. I am finally back to having a mobile friendly blog and a mobile friendly comment system, thanks to you! :)
RispondiEliminawhere can I find this post? My comment count isn't showing on my Blogger mobile site.
RispondiEliminaI've added this line to my blog's code but disqus didn't appeared on the mobile version :(
RispondiEliminaI've just left two comments on your blog from my galaxy SIII. (if you wish you can delete them)
RispondiEliminaIt seems like it needed some time to refresh itself, it didn't show before. Thanks for the heads up!
RispondiEliminaI have a problem.. I am using Nokia Lumia 800 and i have added mobile Tag on my site http://thetrickslab.com .. but i can't able to open comment box on my mobile, either on nokia's website its opening.. help plz
RispondiEliminaStrange because I've just left a comment on your blog using my Android phone proving that disqus is actually working.
RispondiEliminaCan you try to clear the cache of your mobile browser?
Il giorno 08/apr/2013 23:08, "Disqus" ha scritto:
U mean to clear browser cookies or something else?
RispondiEliminaIts saying that i have unsupported browser :-(
RispondiEliminaGreat!
RispondiEliminaIl giorno 08/apr/2013 23:40, "Disqus" ha scritto:
Thanks for this tip. This is really a helpful article. for more information, visit dotlogics.com
RispondiEliminaThanks.Seems this trick is not working for intensedebate
RispondiEliminaThis blog is very nice and informative. It is pretty hard task but your post and experience serve and teach me how to handle and make it more simple and manageable.
RispondiEliminaSamsung Mobile Prices
I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is outstanding; the issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.
RispondiEliminaExcellent tips. Really useful stuff .Never had an idea about this, will
RispondiEliminalook for more of such informative posts from your side
Generally I don't read post on blogs, but I wish to say that this write-up very pressured me to try and do it! Your writing taste has been surprised me. Thank you, quite great post.
RispondiEliminawww.gofastek.com
I do consider all the ideas you have introduced for your post.They’re really convincing and can definitely work. Nonetheless, the
RispondiEliminaposts are too quick for newbies. May you please extend them a bit from
subsequent time? Thank you for the post.
I must thank you for the efforts you have put in penning this blog.I am hoping to see the same high-grade blog posts from you later on as well.
RispondiEliminacan't wait to see what else you have. excellent post!
RispondiEliminapebbles
www.joeydavila.net
This is great blog. Thanks for sharing this post.
RispondiEliminahttp://www.price4india.co.in/
This blog is very nice and informative. It is pretty hard task but your
RispondiEliminapost and experience serve and teach me how to handle and make it more
simple and manageable.
World Latest News
HI there - fantastic resource. I am having a similar problem to others (if you are still answering comments!)
RispondiEliminaI have a customised template for www.mrscienceshow.com - I removed the disqus code from the template and put it into a widget, added the mobile='yes' to the widget HTML11, I can see that it's in the source code of the mobile page but... the disqus widget is not loading up on the mobile page and I can still see the blogger comments. Any ideas?