Skip to content

Instantly share code, notes, and snippets.

@vividvilla
Created April 21, 2013 18:13
Show Gist options
  • Select an option

  • Save vividvilla/5430489 to your computer and use it in GitHub Desktop.

Select an option

Save vividvilla/5430489 to your computer and use it in GitHub Desktop.
Implement Google Plus Commenting to WordPress blog without using Plugin - Twenty eleven theme
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyeleven_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<script src="https://apis.google.com/js/plusone.js">
</script>
<div class="g-comments"
data-href="<?php the_permalink(); ?>"
data-width="800"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment