
繼上篇在我的部落格首頁加上按讚鈕,似乎還是無法滿足我家阿母的需求,「為什麼每篇文章沒有按讚鈕」呢? Orz 於是乎,咱就得再來寫一篇怎麼在每篇文章上都加入按讚鈕!
以下有附圖文教學:
Step 1
到部落格後抬選「範本」--> 「編輯HTML」

Step 2
找出第二個<div class='post-header-line-1'/>,在<div class='post-header-line-1'/>下方貼上以下程式碼!
<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& share=true&font=verdana&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px "></iframe>');
</script>
貼上後按儲存,回到你部落格首頁就可以看到按讚鈕了,很簡單吧!?
0 意見 :
張貼留言