在STheme中显示Twitter

本来在使用说明里写了,刚更新主题把那文件删了,专门写在这里。

在STheme里使用Twitter十分容易,默认显示在主页日志上面的区域。没错,这里是显示公告的,由于支持HTML,你完全可以放任何东西,哪怕是播放器。

新的版本附带了Twitter的相关CSS代码,只需要在主题的后台选项那里在公告栏填写

  • More

里面More的那一行是为了通过W3C的验证,不在意可以把li删除。
需要替换代码中的username为你的twitter用户名,最后的count=3控制显示的数目。

同理,你可以添加滔滔,代码如下。

你还需要自己添加相关的CSS代码到style.css

#taotao { padding:0px; margin:0px; }
#taotao table { display:none; }
#id_apiPane { padding-left:0px; padding-top:0px; margin-top:0px; margin-left:0px; }
#id_apiPane a { color:#4D4B4C; font-size:9px; }
#id_apiPane  ul { padding: 0px!important; }
#id_apiPane  li { display:block; margin:0px!important; list-style-type:none; padding-left:10px; background-image:url(images/span.gif); background-repeat:no-repeat; background-position:left -302px; }

相关日志

Tags : ,

Google Reader Yahoo Facebook Twitter Digg FriendFeed Delicious Google Translate
本博文章均为Sivan原创,内容遵循 署名-非商业性使用 2.5 共享协议,转载请注明来自 Sivan's Blog
原文链接为 http://sivan.in/blog/use-twitter-in-stheme/
这篇日志发表于2009年04月22日 10:59。 你可以订阅该日志的所有评论通过 RSS 2.0。 你可以发表评论,或者引用通告

1条回应

评论(1)引用通告(0)

  1. Showfom

    :mrgreen: 我找到了一款很大气的主题,并且把三栏改成两栏了 哈哈哈

    2009-04-22 16:04 | #1 @

发表评论

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:

(Ctrl+Enter)

XHTML:你可以使用这些标签:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>