An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to gostips@gmail.com.

April 21, 2013

Add Google+ Comments to Any Web Page

Until Google launches an API for the Google+ Comments feature, you can use the code from Blogger. Browsing the Net found a way to embed Google+ Comments on any website or blog. Here's the code you could use:

<script src="https://apis.google.com/js/plusone.js">
</script>
<div class="g-comments"
    data-href="[URL]"
    data-width="642"
    data-first_party_property="BLOGGER"
    data-view_type="FILTERED_POSTMOD">
</div>

Replace [URL] with the address of your page. If you enter the URL of a different page, Google shows some Google+ posts that link to that page and all the comments for that page. For example, if you enter the URL of this blog post, you'll see all the comments and Google+ messages from this page and you can also add a new comment.

It's important to keep in mind that this is an unofficial way to add Google+ Comments and Google can always change the code or remove some features.

{ Thanks, Jerzy. }

15 comments:

  1. you know its funny that google plus comments are actually decent

    ReplyDelete
  2. I would wish that it would support (data-width="100%")

    ReplyDelete
  3. I would wish that it would support (data-width="100%")

    ReplyDelete
  4. Hi, I do think this is a great blog. I stumbledupon it ;) I will revisit once again since i have saved as a favorite it.
    شركات العزل
    http://prokr.org
    شركات كشف التسربات بالمدينة وينبع
    http://prokr.com/water-leaks-detection-almadina-yanbu/
    شركة كشف تسربات وعزل مائي
    http://albyaan.com/companies/water-leaks-detection-water-isolation-al-madina-yanbu/
    شركة كشف التسربات بجدة
    http://abozahra.com/water-leaks-detection-companies-jeddah/

    ReplyDelete
  5. Very good post. I'm facing some of these issues as well..

    عقاري جدة
    http://3kary.com/
    شقق مفروشة بجدة
    http://3kary.com/property-status/monthly-apartments-for-rent/
    شقق عزاب بجدة
    http://3kary.com/property-status/apartments-bachelors/

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete