Using DISQUS Comments for Social Commenting on Your WordPress Site

Using DISQUS Comments for Social Commenting on Your WordPress Site

DISQUS powers the comments system of many blogs, include some high-profile ones. DISQUS has a range of advantages, including better spam prevention and better user happiness from the need for only a single, universal login that can be used across all the sites that use DISQUS. Today, we’re going to take a look at the advantages and disadvantages of DISQUS, how to use it with WordPress (spoiler: it’s incredibly simple) and even some basic customization with CSS.


The Pros and Cons of Using DISQUS

Where alternative comment systems like Facebook’s target specific blog types, DISQUS can be used almost universally across different blogs. Generally, it’s used most by the traditional format sites, but is supported by a bunch of useful advantages making it a kickass solution for any site.

Definitely my favorite fact about DISQUS is everything is handled away from your site. That’s a definite plus for security, but also for spam as third-party services like DISQUS generally offer better spam prevention. DISQUS uses Askimet, so it’s not too unsimilar to the regular WordPress comments, but I’ve definitely experienced less spam in using it.

DISQUS also integrates really well. When you use DISQUS, think of adding your site to a community who all share a common comments system. My site uses this comments system, meaning that I have a single account for posting and moderating comments there, and posting on MacStories, Cult of Mac and all the other sites that use DISQUS. This is great for me as a user, since I retain my identity without having a million different accounts to manage on a per-site basis.

Still on the theme of integration, DISQUS is highly customizable. Most of the time, DISQUS looks great on your website, but you can always opt for another template, manipulate it with some CSS or buy in to their paid service and design your own. We’ll look into customization a little later in the article.

While there are certainly more advantages, there are also a handful of cons against using DISQUS. For fairness’ sake, and so you can make a better decision, let’s take a look at them.

The biggest problem third-party services face is search engine optimization. Search engines don’t generally read DISQUS that well, meaning some pages that are linked aren’t followed. There are ways around that, but it’s definitely not as simple as using comments natively.

Additionally, if DISQUS goes down, so does a major part of your site which could be disastrous for some. Nevertheless, I’ll always recommend DISQUS to most people, so let’s get started!


Installing DISQUS

I don’t guess I need to explain to many members of this audience how to install a plugin. The best way to install DISQUS is to use the plugin because it makes the whole process easy and a lot more seamless. When you use the plugin, DISQUS figuratively swaps out the <?php comments_template(); ?> function to include a DISQUS thread instead. So, wherever you would normally include your comments file, WordPress will
automatically replace that with DISQUS. It’s literally that simple.

The plugin is, by no doubt, the most seamless method of integrating DISQUS. However, if you want, you can use the universal code to embed although it’s not that recommended and I’m going to leave that out of this tutorial to keep things simple.

Unless you disable it, DISQUS will sync with WordPress via the plugin (the universal code won’t work). This means that comments can be stored within both WordPress and on DISQUS, giving you a nice exit route should you want to ditch DISQUS at some point in the future.

Configuration

Naturally, DISQUS has some options for you to choose from. There are some plugin-specific ones, but these generally relate to the syncing process and are more of a troubleshooting plan.

Additionally, with every DISQUS account, there’s options you can choose to manipulate the functionality of your installation. These are very straightforward and generally revolve around limiting certain features such as choosing whether to offer media attachments, and choosing the requirements for commenting.

Luckily for us, all those options are handled from the DISQUS site and don’t require any additional coding so there’s little for me to talk through.

Comment Count

Displaying the comment count can actually be a tricky thing. In most cases, DISQUS will take the place of the <?php comments_number(); ?> function and it will work just fine. However, in some cases, it just won’t and your first port of call is to choose to output JavaScript in the footer under Advanced Options in the plugin’s settings.


DISQUS in Play

What you see above is DISQUS installed as a WordPress plugin on a live site. It’s been setup in the regular way through the DISQUS options page with no additional styling added in a stylesheet.

If we take a quick look around, we can DISQUS has five main sections: the buttons, the comment form, the comments thread, the links and the reactions. We can manipulate each one of these by using both the DISQUS settings page, and applying some overwriting CSS styles. Swiftly moving on, let’s look at how to do just that.


Styling DISQUS

We’ve now covered the pros and cons of using DISQUS and briefly looked at installing it and working with WordPress. Let’s now move on to look at how we can style DISQUS to better fit our theme.

DISQUS itself can be themed, and ships with two default themes: Houdini and Narcissus. These come with the free package. Should you choose to pay for DISQUS (either $299 or $999 per month), you do get the advantage of the advanced theme editor. However, since this is likely not a popular choice, we won’t touch on it much. However, should you use the custom theme editor, you’ll find it incredibly simple to use and very much alike themeing with Tumblr.

Instead, we’ll look at how to style a regular DISQUS installation using the default Houdini theme with some CSS that can be just placed into your stylesheet.

Identifying the Classes

In order to work with DISQUS and style it, we’re going to have to pick out the CSS classes that make it up.

  • #dsq-content – This is effectively the container that the entire DISQUS embed is handled in. Any styles you apply to this will apply universally throughout DISQUS.
  • .dsq-comment-header – This is the comment header, where the commenters name is shown.
  • .dsq-comment-message – You guessed it! This is the comment message, and any styles added to this class only applies to the comment itself.
  • #dsq-content h3 – While technically not a class, styling this tag will style all the headings used throughout DISQUS, such as that denoting the number of comments and the one above the new comment text area.
  • #dsq-global-toolbar – Inside this ID is the global toolbar, aka the row of buttons that reside atop the comment box.

Styling Text

Perhaps the main thing you will want to change is the text, to better match the size and colour of the surrounding theme. This can be achieved by styling the container that the entire DISQUS embed is handled in.

#dsq-content {
    color: #333333 !important;
    font-size: 1em !important;
}

That’s going to change every bit of text throughout the entire DISQUS embed. Naturally, you can apply additional styles to the dsq-content id to better compare it to your WordPress theme.

Alternatively, we can style specific parts of text, such as the commenter details or the headings. In most themes, we’ll likely want to share a common style between the headings in the content and the headings in the comments. This can be achieved by simply changing the class.

#dsq-content h3 {
    color: #666666 !important;
    font-size: 1.2em !important;
}

Hiding Elements

There’s also cases in which you’ll want to disable parts of the DISQUS embed. On my site, I prefer to hide the headings to give it a cleaner look. This is, again, very simple to achieve just by setting the display style to none.

#dsq-content h3 {
    display: none;
}

Wrap-up

DISQUS can be a very powerful addition to a blog, and can provide numerous benefits to both the bloggers and the users (see the benefits section). Although you might experience a few problems, playing about with the options under Advanced Options will generally set DISQUS straight and provide a seamless experience with the comments system. Plus, with the easy nature of adding styles with CSS, it’s not difficult to customize DISQUS to suit any site you want it to.

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • PRESTON

    I use Disqus on my site. Very easy to install, use, and looks great as well. Definitely my number one choice in a comment system! Great write-up!

  • http://www.paulund.co.uk Paul

    I use Disqus it’s very good gives you much more functionality than the normal comments on your blog.

  • Mike

    Great timing. I’m rolling out an install this week on two of my major sites. Much appreciated.

  • Pingback: My Stream » Proof! – Using DISQUS Comments with Your WordPress Install

  • http://twitter.com/drale2k Drazen Mokic

    The biggest Con for me using DISQUS is the lack of dynamically switching the language. I have a website which will display, based on the browser language, in english or german. Now if i set “english” as the language in the DISQUS settings, there is no way to serve german visitors a german version of it.

    • http://thetylerhayes.com Tyler Hayes

      Actually Drazen we do have a JavaScript configuration variable which allows you to dynamically load the Disqus embed in different languages on a per-page basis. See our “Can Disqus be loaded in different languages per-page?” documentation at http://docs.disqus.com/help/97/ and don’t hesitate to get in touch with our support team at http://disqus.com/support if we can lend a hand with anything.

  • http://cinitriqs.deviantart.com CiNiTriQs

    Tried staying away from plugins like these for a while, but, they have changed a lot since the beginning, not strictly limited to certain sites I tend to avoid (like facebook). Either way, will look into this during the weekend and might implement it on two projects that are running for now. thanks for the simple introduction here!

    • Brandon Jones

      Same here – I tried Disqus a while back and got a bad taste in my mouth from the early buggy versions… seems like it’s come a long way though!

  • Joel

    I have been trying to install disqus for 2 days now and i am missing something. I even followed a video tutorial step by step. I think that I may be pasting the code from the tools menu in the wrong place. Can anyone help me?

    • Joel

      I get graphics but I dont have access to a comment box.

      • Joel

        Figured it out

  • http://www.nealedgeworth.com.au Neal Edgeworth

    Fantastic service that I wasn’t even aware of. I’ve replaced 4 plugins on my site with just one, which can hopefully only be a good thing with a little further testing!

  • http://www.pushplaybang..com Paul

    Hey, really great post, love the disqus comment system, tried it recently, and have now been using it all my sites, find I get a hell of a lot less spam, and I love the fact that people can login using facebook / google or twitter account etc.

  • http://webania.net Elliot

    I don’t like disquss for one reason. It is discomfort for me, if thirdparty service name or link to it stays on my site everywhere. So i use default wp comments. Akismet plugin prevents from spam, wp comments is fully customizable and it is interatable with social plugins. So i think we must not always and always look for ready solutions. Sometimes we must try to do ourselves, with manual plugin digest or custom codes :)

  • Matt

    I’d absolutely LOVE to use Disqus. But the template I use doesn’t love Disqus. In fact, every time I’ve tried to use it with my theme, it completely knackers the front page slideshow. And I have to have one of those, because it’s purty. :(

  • http://nothingness.com Josh

    Well, for some reason, my wordpress avatars are not showing up next to the comments ever since I installed the disqus wordpress plugin. I don’t know what it is, but it’s a very annoying thing.

  • http://www.agencypromogroup.com Matt

    I’d like to install disqus on a wordpress page. How do I do that? It shows up on my post pages, but I want to use it as a testimonials page on my wordpress site.

  • http://www.referencement3r.com Référencement Web Trois-Rivières

    I just love DisqUS. Nothing compare’s!

  • http://themespotter.com Dustin

    Thanks so much for this article. I recently added Disqus to my site and have been happy with it so far.

  • http://themespotter.com WordPress Themes

    (sorry for the duplicate comment – I submitted the previous post too soon)

    I like the elegant design of the Disgus comment fields, compared to so many other WP comment plugins out there. I have heard of some issues with it not integrating well with certain WordPress themes and plugins. I understand Elliot’s point above of not wanting a third party’s name on your site, but I think as more people start using it, it will be a good thing to have on your site. Having to create individual loggins across many sites when leaving comments can be pretty cumbersome.

    I’m still a bit torn about whether I like managing comments on an external site though. It’s more convenient to just handle them through WordPress, but its nice to not have to deal with so much spam.

    Dustin

  • http://www.yourdigitalspace.com Swamykant

    I love the disqus and I use it on all my blogs. I have already used few tweaks mentioned. need to other too.

    Nice post.

    • http://noahsdad.com/ Noah’s DadDad

      I noticed you stopped using disqus on your blog. What happened?

  • MIchael

    If is possible to add more than one Disqus comment box per page??? And how??
    Thanks

  • http://réglagecouleurs réglage couleurs

    Your post is really inspiring.

  • reza

    nice…

  • Pingback: DISQUS — лучшая система комментирования для WordPress | Wordpresso

  • Pingback: BlogBuzz December 31, 2011

  • http://izmirescortbayan.com izmir escort

    thank u sir..

  • http://golgesiz.net golgesiz bilisim

    So greating.. thank u…

  • Brian

    umm i’ve noticed you are not using disqus anymore?

    any reasons why?

  • http://izmirescortbuse.org izmir escort

    thank u sir.. good articles.. that is a good blog…

  • http://www.wildramblings.com wild_bill

    I have been using disqus comments on wordpress for quite some time. Suddely i cannot reply to readers comments! How do I fix this?

  • http://samsunggalaxys3review.net/ Mike

    Few days back installed disqus on my website and number of returning visitors increase dramatically because diqus sends members an email if they got replay to comments and it increases discussion and traffic. Cool thing I must say!

  • http://kidney-diet.org kidney diet

    I was sceptical about using disqus as I felt it had losts of bugs. However from your informative explanation I can see that its about time I started using this service, Thansk for the info!

  • http://www.recordrecorder.com RecordRecorder.com

    I like how I read disqus articles like this and yet these blogs and sites are not using Disqus!!! get with the program!!

    • Japh Thomson
      Staff

      Thanks for your feedback!

      We have a wide range of authors for Wptuts+, who have a wide range of experience. The fact that we at Wptuts+ don’t use Disqus for comments has no bearing on the skill and experience of our authors, or their ability to help others :)

  • http://winedinedaily.com/ Wine Dine

    I might give it a try, but do like the simpler systems.

  • Sue G.

    DUSQUS SUCKS BIGTIME!
    If you are commenting and you say anything derogatory about Barack Hussein Soetoro Obama, the screen says: Your comment must be approved by a moderator. Then your comment mysteriously disappears and that is CENSORSHIP on the internet and the last time I checked we still had freedon of speech in this country, although the Big Zero is working on taking that away from us.If you do make a comment, you have to agree to share your email address with DISQUS, then you begin getting ads to your email box that are hard to get rid of. I consider that an invasion of my private information.

  • Derek

    I prefer the old fashioned way of leaving a blog comment, where my chosen gravatar appears and a “subscribe to comment” option. I don’t understand why this isn’t an option with DISQUS. I don’t want to have to login with facebook and I don’t want my facebook pic showing with my comment; I’d rather have my chosen gravatar pics appear. And what about link luv? I’m not allowed to leave a linkback to my site when I feel inclined? Maybe I’m missing something. Other than all of that, it does look pretty cool.

  • http://www.newbajajpulsar.com newbajajpulsar

    very nice and interesting article!
    everyone like it…
    thanks for the information…

  • http://www.mobiletrackingsoftware.co/ Mobile Tracking Software

    It really very detailed article regarding use of Disqus for commenting and I love to read such interesting article. The screen shots are also making easy to express the point of view of writer.

  • http://www.howbler.com howbler.com

    Fantastic service. Loads faster than ID.

  • http://aspinsa.com Durga Appa Rao

    Fantastic service. Loads faster than ID.

  • magz

    It’s true, of all the comment platform disqus was the best.

  • http://www.cambodia-tourism.org VincentLauv

    well, great tips, i like diqus comment for my site

  • http://www.fromdev.com Java Developer

    We tried using disqus for our blog and had some issue retaining old comments to reverted back to default model.

  • http://fotohelp.kz Dima

    Disqus is from category must have

  • Pingback: Integrating Disqus Into WordPress | Wptuts+

  • Pingback: My Stream | Integrating Disqus Into WordPress | My Stream

  • Pingback: Integrating Disqus Into WordPress | Wordpress Webdesigner

  • Pingback: Integrating Disqus Into WordPress | Shadowtek Hosting and Design Solutions

  • Pingback: Integrating Disqus Into WordPress - Tutorial Barn

  • Pingback: Integrating Disqus Into WordPress | KardiWeb English Blog

  • Pingback: Wordpress Leaks » Integrating Disqus Into WordPress

  • Pingback: Integrating Disqus Into WordPress

  • http://www.myaccountantfriend.com Contractor Accountancy Services

    Well, I haven’t had any previous experience in using “disqus” I have been marinating a general blog since over eight months. Hope this would be a good option to insert in my blog, useful information. Thanks!

  • John

    I’m unable to style the disqus section because it’s in an iframe.

  • Arie Putranto

    Well, do you write for comments or do you write and let people to comment? That’s a different situation. For me, let the native comment system of wordpress do the job. It’s just a comment system by the way …

  • http://www.integrationworksinc.com/ Small business IT support Crys

    I have been marinating a general blog since over eight months. Hope this
    would be a good option to insert in my blog, useful information.
    Thanks!

  • http://www.bookinghotels-bali.com/ Bali Resorts

    Nice blog ……..

  • play ninja hattori games free

    Sandy is expected to continue on a parallel path along the mid-Atlantic
    coast later Sunday before making a sharp turn toward the northwest on
    Monday–with the Jersey Shore and New York City in its projected path.

  • http://tanekpage.weebly.com/ Garrison Blackburn

    DISQUS abilities content system of many blogs, consist of some high-profile ones. DISQUS has a variety of benefits, such as better junk avoidance and better individual pleasure from the need for only one.

  • Mike

    Great tips

  • https://plus.google.com/103868913400391964212/ Mr Z

    thanks bro :)
    http://goo.gl/7ky2c

  • tenocation

    Nice thoughts i recommend disqus as well.

  • Commodity Tips

    We tried using disqus for our blog and had some issue retaining old comments to reverted back to default model. If you do make a comment, you have to agree to share your email address
    with DISQUS, then you begin getting ads to your email box that are hard
    to get rid of. I consider that an invasion of my private information.
    Commodity Tips

  • http://www.deshmeaaj.com/ aajtak

    Here is our
    Hindi news website where you can find hindi news about all the latest events
    happening in India. For getting all news in hindi refer to the link above.

  • http://gizlimi.com/ Gizli ilimler

    nice article, worked this time ..

  • http://www.capitalbuilder.in/stocktips.asp Stock Tips

    I think this is among the so much important information for me. And i am satisfied reading your
    article. However should commentary on some normal issues, The web site taste is great, the articles is really great : Stock tips

  • Jan

    I love this post, also trying to customize it

  • http://cubicleninjas.com/ Tyler Etters

    Such an excellent platform.

  • animationfantamilshalu1308

    How long does it take for a comment to be moderated?

  • Ty Cong
  • http://www.innovativeconsulting.co.in/ HaryJames

    No doubt, disqus plays a very important role today.I am using disqus for my blogging.

  • transitsandtrails

    my only concern is login using openID or other social networks.

  • http://www.kizi2.com/ kizi 2

    nice article. i will add disqus to my site. thanks.

  • Nifty Tips

    Well disqus plays a vital role on a blog or on a site which gives benefits in terms of great traffic over the site, thanks a lot for such a wonderful post & awaiting for the next post here…

    http://www.capitalheight.com/nifty-future.php

  • Guest

    hihi

  • phucbv

    hihi

  • http://www.facebook.com/sendung.cool.3 Sendung Cool

    my only concern is login using openID or other social networks

    http://peluangbisnise.blogspot.com/2013/04/ultrabook-terbaru.html

  • http://www.facebook.com/mesir.kadal.1 Mesir Kadal