On 8/14/10 10:49 PM, madebymart wrote:
> In my website, I introduces the tweet button. My website is created
> with iWeb 3.0.1 and I used a HTML-snippet to put in the code given by
> the tweet button wizard.
> 
> Now something goes wrong, I guess.
> 
> Original link: 
> http://web.me.com/madebymart/Treincolumn/Treincolumns/Artikelen/2010/8/13_Geef_het_door.html
> 
> Shortened link: http://t.co/0MaB1ri
> 
> Which opens as:
> http://web.me.com/madebymart/Treincolumn/Treincolumns/Artikelen/2010/8/13_Geef_het_door_files/widget2_markup.html
> instead of the original link.
> 
> I get the button with that, not my website.
> 
> What am I doing wrong?
> 
> Regards,
> Martin

Hi Martin,

iWeb accepts HTML snippets as frames. In other words, the snippet isn't
actually on your page, but on a page IN that page. This means that when
you click the button, you get a link to the page IN the page, not the
actual page.

To solve this kind of issues, the Tweet Button accepts a "data-url"
attribute. So, instead of
<a href="http://twitter.com/share";>
you can use
<a href="http://twitter.com/share"; data-url="http://yoursite.com/";>

Tom

Reply via email to