[教學]如何在WordPress加入浮動Facebook粉絲框

有在經營部落格的人都會有自己的一個粉絲團,但是很多人不知道如何將粉絲團放入至自己的部落格內讓部落格行銷更好,也有很多人知道如何將粉絲團放置網站但是不知道如何將Facebook粉絲框製作成浮動的,所以今天小編也來教各位如何製作自己的粉絲框另外還可以將自己的粉絲框做的更美化,很多粉絲框在製作的時候會讓大家很挫敗,但是只要跟著步驟做應該是不會太難才對。

00 facebooklike

 

步驟一 加入Facebook框語法
1.將下面語法複製到wordpress的小工具內,黃色英文字(Anguswu2013)改成自己的粉絲團帳號,如圖示。

<script type="text/javascript">
$(document).ready(function() {
$(".fbbox").hover(function(){
$(this).stop().animate({right: "0"}, "medium");
}, function(){
$(this).stop().animate({right: "-250"}, "medium");
}, 500);
});
</script>
<div class="fbbox" style="">
<div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2FAnguswu2013&amp;width=245&amp;colorscheme=light&amp;show_faces=true&amp; connections=9&amp;stream=false&amp;header=false&amp;height=270" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 270px; width: 245px;background:#fff;"></iframe>
</div>
</div>

2.貼上小工具的文字框後,修改成自己的粉絲團。

01 facebooklike

不知道如何查看自己的粉絲團的話,請開啟自己的粉絲團網址就看的到了。

02 facebooklike

 

步驟二 加入CSS語法
1.將下面語法複製加入到目前佈景樣式的style.css語法裡面,將圖片網址改成自己的圖片位置(如 : http://wuangus.cc/facebook.png)。

.fbbox{background: url("圖片網址") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 46px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.fbbox div{border:none;position:relative;display:block;}
.fbbox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.fbbox span a{color: #808080;text-decoration:none;}
.fbbox span a:hover{text-decoration:underline;}

2.將語法放置Style.css語法的尾巴即可(外觀 →主題編輯→style.css)。

03 facebooklike

 

步驟三 加入JQuery語法
1.如果自己的佈景主題已經有JQuery語法的話就不需要加入此語法,如果沒有加入的話再加入語法即可。

全行<>改成半形<>→” <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js”></script>

2.將語法放置</head>語法之前即可(外觀 →主題編輯→header.php)。

04 facebooklike

 

粉絲框圖製作建議
建議大小 : 55px * 155px。(建議大家可以自行製作可愛的粉絲框,附上原始Facebook粉絲框圖檔 : 點選我。)
06 facebooklike 05 facebooklike

 

完成畫面
是不是很可愛阿。
99 facebooklike

 

如果大家還有不懂的地方可以參考香腸大的教學 : 點選我

國外教學網址 : 點選我

熱門文章

訂房/旅遊折扣碼

klookkkday
bookingairbnb
agodaubereat
foodpandafoodpanda

優質廣告

最新文章