Wordpress 加上FunP推文貼紙

最近開始玩FunP~ 心情有點”ㄏㄤ”
決定來玩他的玩具~~ 發現他有好多的貼紙XD~
其中有一個推文貼紙就像這個
funpticketexample
很多人都想在Wordpress裡面加入~就這樣來一步一步來吧~

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

改風格
1. 按圖把這段script放到自己風格底下的header.php

  1. <script language="JavaScript" src="http://funp.com/tools/js/funp_button.js"></script>

(註)2. 按圖把這段script放到自己風格底下的index.php和single.php

  1. <script>funp_genButton('<?php the_permalink() ?>', 1);</script>

index.php
index.php
single.php
single.php

註:如果跟我一樣是K2 風格的話要改的檔案不是index.php和single.php,而是theloop.php
而行數沒意外的話大概是在101 行,會看到一串

  1. <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: ,

本文共有 2 條評論Wordpress 加上FunP推文貼紙


留下評論:



>---------------------------------------------------------------------------------------------------------------------------<

Blog Look Score and Rank 台灣部落格列表 who's online PageRank Checker, Alexa Rank Checker, and Yahoo Inlink Checker 免費資源網路社群