Announcement

Collapse
No announcement yet.

Google +1 Button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google +1 Button

    Hi - I still can't get the Google +1 button to show. I see several actinickers have got it to work, but dispite following examples on this site it still will not show. I created a very basic page of code just to test the concept (below) and this does not work for me. I must be missing something fundamental.

    So here is a bit of html that should just display the +1 button:

    Code:
    <html>
    <head>
    <script type="text/javascript">
      window.___gcfg = {lang: 'en-GB'};
    
      (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>
    </head>
    
    
    <body>
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusone annotation="inline"></g:plusone>
    
    </body>
    </html>
    Where am I going wrong ?

    Any help useful!
    Machinery Parts Specialist
    www.magic-parts.co.uk

    #2
    This is the code i use (not that much different to yours)

    Code:
    <g:plusone annotation="inline"></g:plusone>
    <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>
    Ben Adcock
    Caged Fish Web Design

    Comment


      #3
      My tip would be to use sharethis or addthis or a similar platform to add all your social links via, it means you can monitor them and you only have one js file to load not 3 or 4 depending on what network you link too... happy networking
      Adventure Centre Ltd - CheapTents.com

      Comment


        #4
        Originally posted by Magic Parts View Post
        Hi - I still can't get the Google +1 button to show.

        Where am I going wrong ?

        Any help useful!
        Well according to google http://www.google.co.uk/webmasters/+1/button/ you only need.
        Code:
         <!-- Place this tag in your head or just before your close body tag -->
        <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
        
        <!-- Place this tag where you want the +1 button to render -->
        <g:plusone size="tall"></g:plusone>
        or similar, this one produces the box over the button and is the one I use, not sure where your code comes from but this is the official code from google. Checkout the link to see alternative layouts for the button and display box.

        Malcolm

        SellerDeck Accredited Partner,
        SellerDeck 2016 Extensions, and
        Custom Packages

        Comment

        Working...
        X