Skip to content

Instantly share code, notes, and snippets.

@joshcanhelp
Created August 14, 2015 16:19
Show Gist options
  • Save joshcanhelp/483e3e4e1197f25df82a to your computer and use it in GitHub Desktop.
Save joshcanhelp/483e3e4e1197f25df82a to your computer and use it in GitHub Desktop.
Create a widget at Settings > Widgets > Create New, add your Twitter name, check "Exclude replies, uncheck "Auto-expand photos", then Create Widget, find the data-widget-id attribute and paste in this Gist
<div class="home-tweet">
<h6>Latest Tweet</h6>
<a class="twitter-timeline" data-dnt="true" href="[[DIRECT TWITTER PROFILE URL]]" data-widget-id="[[TWITTER WIDGET ID]]"
data-link-color="#ce2029" data-chrome="nofooter noheader noscrollbar noborders transparent" data-tweet-limit="1">
<script>!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + "://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "twitter-wjs");</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment