重要: 修改 Template前請先備份存檔
修改步驟 版面配置 (Template) → 修改 HTML (Edit HTML) → 把 展開小裝置範本 (Expand Widget Template) 打勾 來編輯範本的完整 HTML
將按鈕的程式碼加入你想要的位置 (任選其一)
a. 將按鈕置於文章標題前:
在 <h3 class='post-title'> 代碼前加入以下代碼:
<script>
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show_faces=true&width=450&action=like&font=verdana&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:80px"></iframe>');
</script>b. 將按鈕置於文章內容前或後:
在 <p><data:post.body/></p> 代碼前或後加入以下代碼:
<script>
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show_faces=true&width=450&action=like&font=verdana&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:80px"></iframe>');
</script>其他部落格程式碼請參考官網說明: Like Button - Facebook
↓ 按鈕樣式如下

















10 意見:
謝謝喔~
我剛也加入了.
佳男: 不客氣! 我有去你的部落格看過, 非常不錯! 也按下「讚」了, 一起加油喔!
謝謝你提供的教學~^^
寫得很棒,謝謝你。
成功了,感謝~
舒適的生活, paladin, Jason: 不客氣嚘! 一起加油~ ^^
謝謝你提供的教學,非常棒!!!
Kevin: 不客氣! 一起加油喔~ ^^
感謝,我也加入了,謝謝你的教學!!!!
KuangTC: 不客氣嚘! 一起加油~ ^^
張貼意見