到「後台」→「範本」→「編輯 HTML」中
添加"顯示分享按鈕"
找到以下這行
<div class="post-footer-line post-footer-line-1"></div>或
<div class='post-footer-line post-footer-line-2'/></div>或
<div class='post-footer-line post-footer-line-3'/></div>將下面的程式碼貼上後,儲存範本
<pre class="brush:html"> <div class='post-share-buttons goog-inline-block'> <b:if cond='data:post.sharePostUrl'> <b:include data='post' name='shareButtons'/> </b:if></div>或
<div class="post-share-buttons"> <b:include data="post" name="shareButtons"> </b:include> </div>
添加FB分享按鈕
跟上面的做法相同,找到以下這行
<div class="post-footer-line post-footer-line-1"></div>或
<div class='post-footer-line post-footer-line-2'/></div>或
<div class='post-footer-line post-footer-line-3'/></div>將下面的程式碼貼上後,儲存範本
<!-- 加入FB分享鈕 --> <a href='http://www.facebook.com/sharer.php' name='fb_share' type='button_count'>分享到塗鴉牆</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>或
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=button_count&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:150px; height:21px "></iframe>'); </script> <div class='g-plusone' expr:data-href='data:post.canonicalUrl'/> <script src='http://platform.twitter.com/widgets.js' type='text/javascript'/> <a class='twitter-share-button' data-lang='zh-tw' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share'>推文</a>
參考資料
WFU BLOG Blogger 調校資料庫 - [教學]Blogger 範本﹍(3) 文章及留言區塊的程式碼