How to add a tweet button in wordpress with iframe code

meonet
@meonet meonet

Someone can help me to add a tweet button with iframe code into my wordpress blog?

I'm trying to use this one, but the title post doesn't appear, what's wrong?

<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/tweet_button.html?url=<?php the_permalink(); ?>" style="width:115px; height:21px;"></iframe>

Thanks

2 years 20 weeks ago

Replies

meonet
@meonet meonet

Ok solved, you can see it in action on my blog: http://xtap.it

I post here the code that I used, may be useful for someone with the same problem.

  1. <iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url=<?php the_permalink(); ?>&via=xtapit&text=<?php the_title(); ?>" style="width:115px; height:21px;"></iframe>
2 years 20 weeks ago