This block can display a single tweet or an embedded timeline showing multiple tweets.
This block is hidden on the native mobile apps.
In most cases you will use a single parameter:
Parameter | Example Usage | Description |
Twitter embed raw HTML |
<a class="twitter-timeline" href="https://twitter.com/ApplaudSolution" data-tweet-limit='3' data-chrome='noheader noscrollbar'>@ApplaudSolution</a> | The Twitter embed minus the <script> tags |
Embedding a single tweet
To embed a single tweet:
- Find that tweet on Twitter
- Select the option to embed the tweet
- Copy the HTML code
- Remove the HTML that starts with the <script> tag and ends with the </script> tag, including the tags themselves
- Use this as the HTML
Embedding a user timeline
Use this HTML for a User timeline - replacing the {screen_name} with the actual Twitter handler.
<a class="twitter-timeline" href="https://twitter.com/{screen_name}" data-tweet-limit='3' data-chrome="noheader">Tweets by @{screen_name}</a>
Tip: data-tweet-limit sets the maximum number of tweets to show
Embedded other types of timelines and twitter contents
There are lots of ways of embedding twitter contents. In general, you can follow the advice here:
https://dev.twitter.com/web/overview
You will need to remove all <script>some-script.js</script> tags as described in Embedding a single tweet.