Last active
September 25, 2018 13:40
-
-
Save brandonb927/6433230 to your computer and use it in GitHub Desktop.
How to add Google Plus comments to your site. Paste this into your page and voila!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://apis.google.com/js/plusone.js"></script> | |
<div id="comments"></div> | |
<script> | |
gapi.comments.render('comments', { | |
href: window.location, | |
width: '624', | |
first_party_property: 'BLOGGER', | |
view_type: 'FILTERED_POSTMOD' | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Similarly, you can add a comment counter to the page as well --> | |
<script src="https://apis.google.com/js/plusone.js"></script> | |
<div id="commentscounter"></div> | |
<script> | |
gapi.commentcount.render('commentscounter', { | |
href: window.location | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Supuhstar I didn't see this comment until now :(
Those properties are something you can customize, and I suggest you do so. This code was borrowed from a blogger post of which I can't find the link to at the moment.