Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created April 24, 2013 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jensarps/5453860 to your computer and use it in GitHub Desktop.
Save jensarps/5453860 to your computer and use it in GitHub Desktop.
Use this markup to add Google+ comments to your blog/whatever. Oh, and don't forget to put the width and url in there.
<div class="g-comments"
data-href="{put-your-url-here}"
data-width="{put-your-container-width-here}"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD"
></div>
<script type="text/javascript">
(function() {
var gp = document.createElement('script'); gp.type = 'text/javascript'; gp.async = true;
gp.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gp, s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment