Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Location
    Cheltenham, United Kingdom
    Posts
    43

    WD6 Google Plus One (+1) How Can i Add This To My Sites?

    Hello again my Xara chums.

    I am trialing this new Google +1 thingymajig and there are two pieces of code that need applying to the HTML.

    The first piece of 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">
    {lang: 'en-GB'}
    </script>

    And the second piece of code:

    Place this tag where you want the +1 button to render

    <g:plusone size="medium"></g:plusone>

    I have placed both these pieces of code where they need to be, but the +1 image does not show up at all.

    If i read the source code from the published page the code added to the <body> tag was this:

    <div style="position: absolute; left: 500px; top: 52px; width: 1px; height: 1px; overflow: hidden;"></div>

    Obviously an image of 1px X 1px is incorrect, so i adjusted the width and height to 90px X 24px and moved the first piece of code into the <body> section using Dreamweaver and low and behold it works.

    I am not hugely fluent in these things, hence owning Xara in the first place, but being able to do this within DP7 or WD7 would of course be of huge benefit.

    Any help or suggestions would be as always gratefully received.

    Many thanks

    Nick
    Nick Stephens

    www.nikom.co.uk

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,504

    Default Re: Google Plus One (+1) How Can i Add This To My Sites?

    Sounds like you got it figured out?

  3. #3
    Join Date
    Mar 2009
    Location
    Cheltenham, United Kingdom
    Posts
    43

    Default Re: Google Plus One (+1) How Can i Add This To My Sites?

    Hi Gary,

    Well not really because the pages get updated regularly, and it is beyond a pain in the whatsits to keep updating every single page every time i do an update.

    What i really need is a Xara Guru Expert Guy, like yourself (wink, wink) to maybe shine a light on how to do this completely within WD7 or DP7?

    Any ideas on how this can be achieved?

    Many thanks

    Nick
    Nick Stephens

    www.nikom.co.uk

  4. #4

    Default Re: Google Plus One (+1) How Can i Add This To My Sites?

    I don't see any need for the DW step Nick.
    Works perfectly fine right out of the box using the code provided, the placeholder object size makes no difference at all in my tests, the +1 button appears on the page at the position of the p/h.
    One thing, it won't show locally - has to be published online first, so Web Preview doesn't show any button.

    Link to Test Site
    The actual placeholder object used is 10px x 10px
    Last edited by ShapeShifter; 19 July 2011 at 10:13 PM. Reason: sample

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •