Google +1 button

You may notice Google +1 button on Google search pages and in many web pages in internet today. This page also contains a +1 button top of the right column. Here I shall discus the importance on Google +1 button and its impact in gaining traffic to your site. I shall also discus the step by step guide that how to add +1 button on Ramui Webblog script.

Importance of Google +1 button on web crawler

A search engine index pages and provide their ranking by the help of automated software. This software is popularly known as Web spider or bot or web crawler. Web crawlers measure certain parameters about a page and follow a software algorithm to calculate the importance of that webpage. Since there is no human review in that ranking process so the reliability and the authentication of their ranking is not beyond the scope of doubt. Moreover there are many search engine experts who mislead search engines by various unfair manners to rank their pages in their favor.

Google +1 button accepts approval from the registered users of Google. If you have Gmail or any other Google account you can vote for a webpage. Google bot gives great importance over those votes from users. In this way the performance of bot is influenced by human review thus removing the shortcoming of automated software.

How to add +1 button

Here I shall discus how to add +1 button to the WebPages build by Ramui Webblog script.

  • Go to Google +1 page;
  • Choose your button size and style;
  • From here you get two block of code to add your site.
  • Login to your script control panel with your user name and password;
  • Open template editor;
  • Open "head.php" for editing;
  • At the top of the page find the line:
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  • Replace that line by the following line of text:
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" itemscope itemtype="http://schema.org/">
  • At the end of the just before closing head tag (</head>) add the following lines of text.
Code | Download
<meta itemprop="name" content="<?php echo $fw_page_array['title'].' : '.$fw_site_array['sitename'];?>">
<meta itemprop="description" content="<?php echo $fw_page_array['description'];?>">
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
Save the file and close it.

Now open your default template folder; open file "index.php" for editing. Put the following line of code where you want to add +1 button to display. If you are using default "elegant" template of version-4.1 then after the line: <div id="fw_mainbody"> (line-24) add the following line.
<g:plusone size="small" annotation="inline"></g:plusone>
This code may vary according to the size and settings you provide at Google +1 page. Now save the file and open your web pages to view +1 button.

Comments:

Add comment