未分類

把推推王的推薦按鈕加入 wordpress

原本我還不知道推推王 http://funp.com/,到底跟黑米 http://www.hemidemi.com/ 有什麼不同?

呵...現在我知道了,如下圖,原來可以把自己的 blog 也加入推薦按鈕,蠻有趣的,應該還有其他按鈕我還沒發現^^
51.png
OK,這個很簡單,WordPress 請編輯 header.php

<html xmlns=”http://www.w3.org/1999/xhtml”>
<head profile=”http://gmpg.org/xfn/11″>
<!–FunP推推王–>
<script language=’JavaScript’ src=’http://funp.com/js/funp_button.js’></script>

再來要編輯 index.php 跟 single.php

<div class=”posttitle”>
<h2>
<script>funp_genButton(‘<?php the_permalink() ?>’);</script>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a>
</h2>

這樣就大功告成了!

2 thoughts on “把推推王的推薦按鈕加入 wordpress

發佈回覆給「Werboy」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *