虚拟主机域名注册-常见问题其他问题 → 其他问题


如何在wordexpress内容页面添加baidu或google广告代码
作者:系统管理员

在Wordpress文章內容顶部加广告:
打开主题目录(wp-content\themes)下的”single.php”,找到如下代码:
<?php
/* Run the loop to output the post.
* If you want to overload this in a child theme then include a file
* called loop-single.php and that will be used instead.
*/
get_template_part( ‘loop’, ‘single’ );
?>
这段代码是wordexpress的内容部分,你的广告代码既可以加在这段代码顶部,也可以加在这段代码底部。顶部对应文章顶部,底部对应文章底部。够简单吧。



来源: 网络
阅读:3095
日期:2012-09-29

【 双击滚屏 】 【 推荐朋友 】 【 收藏 】 【 打印 】 【 关闭 】 【 字体: 】 
上一篇:cn域名注册流程(英文.cn\中文.中国\中文.cn)
下一篇:同一个虚拟主机空间实现不同域名访问跳转不同目录代码
  >> 相关文章