[修改]網站放Facebook臉書、twitter、Plurk噗浪按鈕

  1. 打開使用主題(路徑:wp-content/themes/主題名稱)的index.php檔案
  2. 找到
    <h2><?php the_title(); ?></h2>
  3. 在下面找位置插入
    
    <div>
    <span style="float: right">&nbsp;
    <a rel="nofollow" onclick="this.target='_blank'" href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink() ?>&amp;t=<?php the_title(); ?>">
    <img title="分享到臉書!" src="http://iwboe.com/wordpress/img/facebook.png" width="20" height="20" alt="臉書" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://plurk.com/?qualifier=shares&amp;status=[分享] http://iwboe.com/wordpress/?p=<?php the_ID(); ?> (<?php the_title(); ?>)">
    <img title="分享到噗浪!" src="http://iwboe.com/wordpress/img/plurk.png" width="20" height="20" alt="噗浪" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://twitter.com/home?status=[推薦] <?php the_title(); ?> http://iwboe.com/wordpress/?p=<?php the_ID(); ?>">
    <img title="分享到推特!" src="http://iwboe.com/wordpress/img/twitter.png" width="20" height="20" alt="推特" /></a>
    </span>
    </div>
    
  4. 存檔上傳
  1. 換打開single.php檔案
  2. 找到
    <h2><?php the_title(); ?></h2>
  3. 在下面找位置插入
    <div>
    <span style="float: right">&nbsp;
    <a rel="nofollow" onclick="this.target='_blank'" href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink() ?>&amp;t=<?php the_title(); ?>">
    <img title="分享到臉書!" src="http://iwboe.com/wordpress/img/facebook.png" width="20" height="20" alt="臉書" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://plurk.com/?qualifier=shares&amp;status=[分享] http://iwboe.com/wordpress/?p=<?php the_ID(); ?> (<?php the_title(); ?>)">
    <img title="分享到噗浪!" src="http://iwboe.com/wordpress/img/plurk.png" width="20" height="20" alt="噗浪" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://twitter.com/home?status=[推薦] <?php the_title(); ?> http://iwboe.com/wordpress/?p=<?php the_ID(); ?>">
    <img title="分享到推特!" src="http://iwboe.com/wordpress/img/twitter.png" width="20" height="20" alt="推特" /></a>
    </span>
    </div>
    
  4. 存檔上傳
  1. 換打開archive.php檔案
  2. 找到
    <h2><?php the_title(); ?></h2>
  3. 在下面找位置插入
    <div>
    <span style="float: right">&nbsp;
    <a rel="nofollow" onclick="this.target='_blank'" href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink() ?>&amp;t=<?php the_title(); ?>">
    <img title="分享到臉書!" src="http://iwboe.com/wordpress/img/facebook.png" width="20" height="20" alt="臉書" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://plurk.com/?qualifier=shares&amp;status=[分享] http://iwboe.com/wordpress/?p=<?php the_ID(); ?> (<?php the_title(); ?>)">
    <img title="分享到噗浪!" src="http://iwboe.com/wordpress/img/plurk.png" width="20" height="20" alt="噗浪" /></a>
    <a rel="nofollow" onclick="this.target='_blank'" href="http://twitter.com/home?status=[推薦] <?php the_title(); ?> http://iwboe.com/wordpress/?p=<?php the_ID(); ?>">
    <img title="分享到推特!" src="http://iwboe.com/wordpress/img/twitter.png" width="20" height="20" alt="推特" /></a>
    </span>
    </div>
    
  4. 存檔上傳

相關文章:

  1. 模糊圓直徑與片幅
  2. wordpress風格改造
  3. C# SSC-16 控制端
  4. SSC-16 FOR 8052

FaceBook留言板

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>