Skip to content

Instantly share code, notes, and snippets.

@Jermolene
Last active March 14, 2020 03:13
Show Gist options
  • Save Jermolene/8235067 to your computer and use it in GitHub Desktop.
Save Jermolene/8235067 to your computer and use it in GitHub Desktop.
Here's the way to get a twitter follow button into TiddlyWiki (version 5).

The only change from the version published at https://dev.twitter.com/docs/follow-button is that new lines have been removed.

Note that the src URL is given without a protocol (ie "http" or "https"). It's done this way so that it works on sites whether they are hosted on a HTTP or HTTPS domain. If you want the Twitter button to work while using a TiddlyWiki offline on a "file://" URL, then you'll need to manually add the protocol. For example:

<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/follow_button.html?screen_name=jermolene"  style="width:300px; height:20px;"></iframe>
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name=jermolene" style="width:300px; height:20px;"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment