Home  »     »     »     »     »  Google PlusOne (g +1) Button Code - How to add Google PlusOne (g +1) Button on web pages?

Google PlusOne (g +1) Button Code - How to add Google PlusOne (g +1) Button on web pages?

Wednesday, December 26, 2012

Google PlusOne (g +1) Button Code - Instructions to add Google PlusOne (g +1) Button on web pages

Sharing Your website content through Google search is now simple and easy

Google PlusOne (g +1) Button

You can add google +1 button to allow Your website visitors to recommend Your web contents to google search as well as to share it on the google Plus pages. By adding the +1 button to your website, you allow your users to recommend your content to their circles and drive traffic to your site.



The integration procedure is very simple.

Just copy and paste the following code on your web pages.


G+ button code with count box display
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone"></div>

<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>


G+ button code with No share count display
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-annotation="none"></div>

<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

G+ button code with inline display

<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-annotation="inline" data-width="120"></div>

<!-- Place this tag after the last +1 button tag. -->
<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>

Simple PlusOne (+1) button
for placing a simple PlusOne (+1) button use the following code:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone></g:plusone>


You can customize the Google plus buttom by adding several attributes to the button code

For more information related to customization of the plusOne button, please visit the following link
https://developers.google.com/+/plugins/+1button/
https://developers.google.com/+/web/+1button/

Related Posts
  1. Google PlusOne (g +1) Button Code - How to add Google PlusOne (g +1) Button on web pages?
  2. Facebook Like button to popularise Your Web contents - How to create and integrate FB Like Button to websites?
  3. Facebook Share button for Sharing Web contents - How to create and add FB share Button to websites?
  4. Twitter Share ( Tweet ) button for better content sharing - Instructions for adding Tweet button to your website
  5. How to add BlogIt button or Widget on your blogger website
  6. Integrated code for Twitter Share, Facebook Like & Share, google Plusone Buttons
  7. More on Social Networking Tools



How to link to this page?
If you wish to link to this page from your website, simply Copy and paste the above HTML code to your web page. It will appear on your page as:
Google PlusOne (g +1) Button Code - How to add Google PlusOne (g +1) Button on web pages?.




Share this!




comments powered by Disqus

This Weeks 7 Popular Posts


Subscribe to Recent Posts by Email
Stay connected to CROZOOM with regular Email notices of new Techie articles and IT Jobs. Updates will be delivered to your Inbox as soon as they are posted online.

Enter Your Email Address:  

Delivered by FeedBurner   RSS Feed

Search this Blog   



Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »