Skip to main content

How To Install DISQUS Manually in Blogger



If you're not a great fan of the default Blogger Comments system then DISQUS is a must for you. DISQUS is the best Comment system available for Websites and Blogs. DISQUS is completely SEO friendly and the comments are easily crawled and indexed by Google bots.
DISQUS provides default installation process for various platforms including Blogger, Wordpress, Tumblr, Javascript (for Websites ). But the failure to add the DISQUS widget to Blogger has become a common problem in recent times. So instead of being dissappointed what we can do is Install it manually with this very simple tutorial. Let's get started -

                             


1. Login to Blogger.

2. Go to Layout > Add a Gadget.

3. Select HTML/JavaScript Gadget.

4. Now Login to Disqus (You need to have a registered account in Disqus)

5. Go to Setting > Install
.

                             


6. Choose Blogger as the platform.
                     
                           


7. Click on Add to my Blogger Site.
8. You'll be then redirected to the Blogger Add widget page where you'll find two find two sections -
Edit Content and Edit Template

9. Copy the content from Edit Content and paste it in the HTML/Javascript gadget and Save it. Keep the Title of the gadget as DISQUS (or any other name as you wish).

                     




10. Go to Template (Back up your Template) > Edit HTML > Expand Widget Template
11. Search (CTRL+F) for "DISQUS" (or the Title of the gadget in Step 9). You'll find a code similar to this -

       

<b:widget id='HTML5' locked='false' title='Disqus' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>

12. Now delete the section of code  between " <b:widget id='HTML5' locked='false' title='Disqus' type='HTML'>" and "</b:widget>"

13. Now copy the code content form the Disqus Edit Template section -

                     
 

14. Paste the copied code between the tags mentioned in Step 12). Your code will now look similar to this (do not copy this code, code is specific for each website)-

<b:widget id='HTML4' locked='false' title='DISQUS' type='HTML'>
<b:includable id='main'>
            <script type='text/javascript'>
                var disqus_shortname = &#39;infy-lounge&#39;;
                var disqus_blogger_current_url = &quot;<data:blog.canonicalUrl/>&quot;;
                if (!disqus_blogger_current_url.length) {
                    disqus_blogger_current_url = &quot;<data:blog.url/>&quot;;
                }
                var disqus_blogger_homepage_url = &quot;<data:blog.homepageUrl/>&quot;;
                var disqus_blogger_canonical_homepage_url = &quot;<data:blog.canonicalHomepageUrl/>&quot;;
            </script>
            <b:if cond='data:blog.pageType == &quot;item&quot;'>
                <style type='text/css'>
                    #comments {display:none;}
                </style>
                <script type='text/javascript'>
                    (function() {
                        var bloggerjs = document.createElement(&#39;script&#39;);
                        bloggerjs.type = &#39;text/javascript&#39;;
                        bloggerjs.async = true;
                        bloggerjs.src = &#39;http://&#39;+disqus_shortname+&#39;.disqus.com/blogger_item.js&#39;;
                        (document.getElementsByTagName(&#39;head&#39;)[0] || document.getElementsByTagName(&#39;body&#39;)[0]).appendChild(bloggerjs);
                    })();
                </script>
            </b:if>
                <style type='text/css'>
                    .post-comment-link { visibility: hidden; }
                </style>
                <script type='text/javascript'>
                (function() {
                    var bloggerjs = document.createElement(&#39;script&#39;);
                    bloggerjs.type = &#39;text/javascript&#39;;
                    bloggerjs.async = true;
                    bloggerjs.src = &#39;http://&#39;+disqus_shortname+&#39;.disqus.com/blogger_index.js&#39;;
                    (document.getElementsByTagName(&#39;head&#39;)[0] || document.getElementsByTagName(&#39;body&#39;)[0]).appendChild(bloggerjs);
                })();
                </script>
        </b:includable>
</b:widget>

15. Save Your Template and you're done !

So that's it for now. Try out your new DISQUS commenting system. And do comment if you find any trouble implementing this. I'm here to help :)

Comments

  1. Well explained article about how to install Disqus manually in Blogger. You can also find interesting article about study abroad here:
    https://admitkard.com/blog/2017/12/22/top-10-affordable-colleges-in-australia/

    ReplyDelete
  2. Divergent Insights is working with renowned industry experts providing competitive research services and thought leaders from leading consulting companies, providing niche-based intelligence services to help them solve pieces of a larger problem.

    ReplyDelete

Post a Comment

Popular posts from this blog

THE FIRST TIME

It was one of those typical weekends and I was  the typical lonely guy, sipping away my cup of coffee, all alone. It was just me and my phone enjoying each other's company on a weekend evening. It's not that I had no friends, I had fairly good friends but they had girlfriends. Believe me; the girlfriend always scores a victory over the friend when it comes to investment of attention and company. My thoughts were meandering across the vastness of my solitude when my phone started ringing abruptly.  It was Rohan, one of the few friends who actually call me. Rohan - Hey man, wass up? I sensed an obnoxious sense of dizziness in his voice. Me - Hey bro are you drunk? Rohan - Oh my God you know me so well. You are my true friend. It’s not just me, Vikash is also drunk. Vikash was my college roommate, another one of those saintly friends who still call me. Me - Oh God! What are you guys unto at this time? If this is an invitation for a booze party, you alr...

Never Too Late To Have a Happy Childhood

I love the statement of Walt Disney who quoted -- "Thats the real trouble with the world, too many people grow up". By the time we begin to understand enough about the world to ask the right questions, our visit is over, and someone else is visiting, asking the same questions. The carefree attitude was lost somewhere. As a child we had a different craze for chocolates, for toys and for everything sweet but our intentions were pure and pristine. We were innocent, we wanted happiness for everybody whether it was a friend or a foe. We had priorities set to a different level. For us happiness used to come in every small package whether its a delicious snack cooked by mom or a new book gifted by dad, or the 1st time we ride a  bicycle. We used to be busy with something every time, whether its watching the rainbow or counting the stars, or making strange imaginations from the clouds. Our days were short and life was fulfilled. We never knew what is Money a...

THE GIRL WHO BLOCKED ME

“Hello. Before you wonder who I am and why did I invade your privacy in this ludicrous manner, I want to tell you that I understand that this is the most uncivilized and discourteous way to start a conversation with some girl you have never known. The worst I could do was to take your phone number without your permission. I mean that is genuinely the worst way to approach a girl. But you have to know I had to send this message, to make my mind guilt free, to proudly reply to my conscience that at least I made an attempt and to win myself a conversation with you. I am sure all this is irrelevant and inconsequential for you but I want to confess that I may have practiced writing this message several times through several days. I might have visited your Facebook profile a few times. And I might have rehearsed a few times on how to cope up with the failure once I don't get any reply from you. But all these hardly diminish the fact that I have utmost respect for you and t...