ShareThis Forums » Publishers

Adding Share This to custom Blogger template

(3 posts)
  • Started 9 months ago by Known
  • Latest reply from ShareThisSupport

Tags:


  1. Hi, I am trying to incorporate Share This into a custom Blogger template using the STAPI.

    I am not sure what to put in the Object properties, this is what I have which doesn't work

    <script language="javascript" type="text/javascript">
    SHARETHIS.addEntry({
    title:'<$BlogItemTitle$>',
    summary:'Sharing is good for the soul.',
    url:'<$BlogItemUrl$>',
    content:'<$BlogItemBody$>',
    icon: 'http://path.to/icon'
    }, {button:true} );
    </script>

    http://blog.known.com.au

    Any help would be awesome.

    Brad

    Posted 9 months ago #
  2. Got it, the code block finally looked lie this.

    <$BlogItemControl$>
    I pasted the code straight after this

    &nbsp&nbsp <script language="javascript" type="text/javascript">
    SHARETHIS.addEntry({
    title:'<$BlogItemTitle$>',
    summary:'Sharing is good for the soul.',
    url:'<$BlogItemPermalinkURL$>',
    icon:'http://path.to/icon'
    }, {button:true} );
    </script>

    Posted 9 months ago #
  3. Brad,

    Glad you got it to work! The "icon" property is designed to specify the thumbnail sent wiht your shared object. The code you copied is example code, effectively you're setting it to a non-existent path. The "summary" is also an example summary. You can make it read whatever you wish.

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.