github repo似乎是一个自定义代码,您需要将其放入主题目录,使用您的twitter凭据更新配置文件,并尝试将此代码放入您将使用的任何预期主题文件(例如index.php)的正文中
<h1>Tweets of a certain user</h1>
<div class="stream">
<h2><span>Twitter</span></h2>
<ul class="timeline"></ul>
</div>
<h1>Tweets of a certain user with profile image</h1>
<div class="stream">
<h2><span>Twitter</span></h2>
<ul class="timeline-profile-image"></ul>
</div>
<h1>HashTag: #html5</h1>
<div class="stream">
<h2><span>Twitter</span></h2>
<ul class="hashtag"></ul>
</div>
<script type="text/javascript" src="../build/tweetlight.min.js"></script>
<script type="text/javascript">
(function(window, document, undefined) {
Tweetlight({
username: \'pinceladasdaweb\',
container: \'.timeline\',
counter: 5
});
Tweetlight({
username: \'smashingmag\',
container: \'.timeline-profile-image\',
showImageProfile: true,
counter: 5
});
Tweetlight({
hashtag: \'#html5\',
container: \'.hashtag\',
counter: 5
});
}(window, document));
</script>
我从github repo的示例文件夹中获得了代码