© Don't Republish Any Article Of This Site √

23 April, 2013

How To Add Google+ Comments In WordPress?


SOCIALIZE IT →
Google+ Comments For WordPress
After the introduction of a  great Google+ commenting system for blogger blogs, WordPress users might want to add that commenting system in their blogs/site. So here we're going to learn that they can use Google+ commenting system on their WordPress blogs. Installing this commenting system in WordPress blogs is not so difficult. You just need to follow the simple steps. Before installing that commenting system, must checkout it's features which we have discussed in our previous post.

Add Google+ Comments In WordPress

There are two methods to install Google+ Comments In WordPress. First one is by installing a plugin and second one is installing it manually. So here are these both methods.

Plugin Method

  • Download the Google+ Commenting System Plugin for WordPress blog by using the below button.
  • After downloading the plugin, upload it your theme directory. Now it will replace the older commenting system to this new one Google+ comments.

Manual Method

  • In this method, You will need to edit the comments.php file in your theme. So, go to your theme files and edit comments.php
  • Now remove all the coding in comments.php file and add the following Google+ commenting system coding in it.
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <div id="plusonecomments" style="width: 600px;height: 300px;"></div> <script type="text/javascript"> window.setTimeoutundefinedfunctionundefined) { var id = 'plusonecomments'; var divWidth = document.getElementByIdundefinedid).offsetWidth; var width = !!divWidth ? Math.minundefineddivWidth, 750) : 600; var url = "<?php the_permalinkundefined); ?>"; var moderationUrl = ""; var moderationMode = "FILTERED_POSTMOD"; gapi.comments.renderundefinedid, { 'href': url, 'first_party_property': 'BLOGGER', 'legacy_comment_moderation_url': moderationUrl, 'view_type': moderationMode, 'width': width }); }, 10); </script>
  • Save your comments.php file and you've done.
  • That's All. 

0 comments:

 

Ranking

Recent Comments

Recent Comments Widget

Recent Posts

Copyright © 2012-2013. All Rights Reserved | My Tech Cafe | Designed By

Home | Contact Us | About Us | Privacy Policy |Top