Latest: Tutorials


Wednesday 26 February 2014

How to Add Google+ comments in WordPress without using any Plugin?

0 comments
Using google+ can bring alot of advantages to your blog, despite the friends i had on google+ i still get targeted traffic to my blog.Though this process is easy using blogger platform but a little bit hard for new wordpress users..So i will be sharing with you how to Add Google+ comments in WordPress without using any Plugin?

How to Add Google+ comments in WordPress without using any Plugin?
  • Login into your WordPress Admin area.You can reach there by entering your credential at http://yourblog.com/wp-admin.The screenshot of the login form is shown below:
WordPress Login Form
WordPress Login Form
  • Navigate to Appearance>>Editor in your Dashboard. The screenshot of the same is shown below:
Theme Editor in WordPress
  • It will open the Theme Editor Window. Click on “Comment.php” file on the right hand side. The screenshot of the same is shown below:
Comment.php in WordPress
  • In comment.php file, Try to look for “<div id=”comments”>“. The screenshot of the same is shown below:
Codes of comments in WordPress
  • Paste the Below given codes just below “<div id=”comments”>” in your comment.php file.
&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;
&lt;div id="plusonecomments"&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
  window.setTimeout(function() {
    var id = 'plusonecomments';
    var divWidth = document.getElementById(id).offsetWidth;
    var width = !!divWidth ? Math.min(divWidth, 750) : 600;
    var url = "&lt;?php the_permalink(); ?&gt;";
    var moderationUrl = "";
    var moderationMode = "FILTERED_POSTMOD";
    gapi.comments.render(id, {
        'href': url,
        'first_party_property': 'BLOGGER',
        'legacy_comment_moderation_url': moderationUrl,
        'view_type': moderationMode,
        'width': width
  • If you are finding it difficult to understand, see the below given screenshot:
Google+ comments integration wordPress
  • Once done, click on the “Update File” button. The screenshot for the same is shown below:
Update File option in wordpress
  • That’s it. You are done. Google+ comments will be added just above your Default WordPress Comment form so enjoy.

 

0 comments: Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.

Post a Comment

Blogger Widgets
 

Contact Form

Name

Email *

Message *

Jquery Dropdown Menu

Author's Bio

Founder & Author: Oyejobi Adeola is a blog designer, web developer and a loving person currently working on several web projects, he is managing several blogs from his living.He loves to help and teaches different people on how they can make it big online without age barrier.Do you really love his blog? If yes, then
Read More About Him

Recipes

Related Posts Plugin for WordPress, Blogger...
Copyright © 2013 Noblenaijablog All Right Reserved
Designed by oyejobiA | Powered by Blogger