最近開始玩FunP~ 心情有點”ㄏㄤ”
決定來玩他的玩具~~ 發現他有好多的貼紙XD~
其中有一個推文貼紙就像這個

很多人都想在Wordpress裡面加入~就這樣來一步一步來吧~
他提供的貼紙很多~ 可以到 http://funp.com/tools/ 去看看~
不過這邊先以推文貼紙為主~
選貼紙
1. 先到 http://funp.com/tools/buttongen.php挑選自己喜歡的推文貼紙
2. 網址的部分照著下面圖示填~ 這樣才能抓到每篇文章的Id
3. 下面就選一頁中有多個按鈕來產生Script

改風格
1. 按圖把這段script放到自己風格底下的header.php
- <script language="JavaScript" src="http://funp.com/tools/js/funp_button.js"></script>
(註)2. 按圖把這段script放到自己風格底下的index.php和single.php
- <script>funp_genButton('<?php the_permalink() ?>', 1);</script>
註:如果跟我一樣是K2 風格的話要改的檔案不是index.php和single.php,而是theloop.php
而行數沒意外的話大概是在101 行,會看到一串
- <h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h3>
可以直接在他前一行加入就行了~ 我是加入在最後面~
Try it ![]()
Tags: funP, wordpress
加入書簽:










其實我寫了外掛…
http://applepig.idv.tw/archives/492
Wordpress Plug-in:替你的Blog加入台灣區的社群書籤 at 蘋果豬日記V3.2
感謝 @_@~ 找機會來用用看 < (_ _)>