ShareThis Forums » Publishers

Changing title and description

(1 post)
  • Started 7 months ago by hrevent

  1. hrevent
    Member

    Hi,

    I tried to change the title / description but it didn't work fully-
    the following post
    http://forums.sharethis.com/topic/changing-source-of-the-title-or-description-when-posting?replies=2
    advises to insert the sharethis query string from http://sharethis.com/publisher string into the <head> of your page and then use the "title" object property to specify the title of your shared objects.

    I understood this to mean that I can put the query string section anywhere between the <head> and </head> statement and then the sharethis.addentry anywhere after the </head> as below:

    [a separate .inc file with <head> and all the <meta> and <style> statements, ending with </head> comes here, containing the statement below]
    <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&charset=utf-8&style=rotate&publisher=xxx;popup=true"></script>

    the .asp file with the sharethis code starts here:

    <script language="javascript" type="text/javascript">
    SHARETHIS.addEntry({
    title:'Check out this movie',
    url:'http://testurl.com',
    summary:'testsummary',
    content:'testcontent',
    icon: 'http://path.to/icon'
    }, {button:true} );
    </script>

    However, when I do this as above, the sharethis icon doesn't show. It will only show if I put the two sharethis code sections next to each other in the asp file, i.e. after the </head> section.... why is this..?

    secondly, when I put the two sections next to each other, the sharethis icon does show but all of the custom addentry properties are ignored...

    what I would like is to put my own custom strings in the subject and description of the email the shared person would receive... that would appear on all the sharethis sent e-mail messages.

    Thank you for any help..

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.