【发布时间】:2010-10-31 05:43:30
【问题描述】:
我不久前在 wordpress custom_function.php 文件中添加了以下代码以显示 google adsense。现在我想删除代码,但是当我注释掉以下代码时我的网站中断了。我不明白为什么。请提供您对此的意见。
function sidebar_ads() {
?>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxx";
/* 160x600, created 9/23/10 for SideBar */
google_ad_slot = "xxxxx";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php }
add_action('thesis_hook_before_sidebars', 'sidebar_ads');
【问题讨论】:
-
你能用你遇到的错误更新你的问题吗?
-
我在 wordpress 文件编辑器中编辑这个。在我保存删除上述代码的文件后,站点就中断了。我的意思是我的网址中没有任何内容。我必须 FTP 并替换这个文件才能让它再次工作。