vi /path/f 2blog/skins/XXX/global.css

// 加入三行

.ad {
float: left;
}

vi /path/f 2blog/include/read.inc.php

<!– 找到這行 –>
<div class="Content-body" id="logcontent_<?php echo $fa['id']?>" style="word-break:break-all; table-layout: fixed;">

<!– 這裡底下加入 –>
<!– Add Google AdSense into Content start –>
<div class=ad  style="float:none">
<!– 這裡放 google adsense 程式 –>

</div>
<!– Add Google AdSense into Content end –>

以上是文章最前面,如果要顯示在後面則於 <?php if ($tags!="" || $tb_allow!=""){? 這行前面加入

ref: http://forum.f2blog.com/viewthread.php?tid=4282&highlight=ads

而這個插件http://forum.f2blog.com/viewthread.php?tid=1496&highlight=ads
則拿來當其它用途,很方便,只要啟動它,並把 javascipt 放進去,就可在側邊看到東西了

Related posts 相關文章
我現在的筆記方式
More...
2022 年也要更新你的 WordPress
More...
如何關閉 WordPress 自動更新功能
More...
WordPress 新版 3.8 Parker
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。