1. cliveportman
  2. /code
  3. /add-google-plus-comments-to-a-site

Add Google Plus comments to a site

Unofficial, as far as I know, but here's how to add the awesome Google+ commenting to your site:

<script src="https://apis.google.com/js/plusone.js"></script>
<div class="g-comments"

Note you'll need to add your site to your Google+ profile. If you just want to show the comment count, add the script as before, but then just use:

<div class="g-commentcount" data-href="[URL]"></div>

At the time of writing, the comment count is unstyled and doesn't look great. Both comments and the comment count are loaded through iframes, so forget styling them. Hopefully Google will improve this if there's ever an official version, though I think the comment count is also unstyled in Blogger.