关闭。这个问题需要debugging details .它目前不接受答案。
想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。
3年前关闭。
Improve this question
当我在桌面上打开我的网站时,广告没有显示在我的网站上,但在智能手机上显示良好,因为我使用的是“sahifa v4.0”wordpress 主题。
我的网站是http://itsmyfun.net .一个广告在页眉部分,一个在页 footer 分之前。三是文章前。
请指导我如何解决这个问题?
广告在移动设备上可见,您可以在此处查看:http://mattkersley.com/responsive/
最佳答案
您在嵌入广告的 HTML 部分遇到了一些问题。看一看:
<script type="text/javascript">
var adWidth = jQuery(document).width();
google_ad_client = "5467995485431950";
if ( adWidth >= 768 ) {
google_ad_slot = "";
google_ad_width = 728;
google_ad_height = 90;
} else if ( adWidth >= 468 ) {
google_ad_slot = "";
google_ad_width = 468;
google_ad_height = 60;
}else {
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
}
</script>
您应该清理第一个与大屏幕相关的 google_ad_slot。这就是它适用于较小屏幕的原因(如果您在调整窗口大小的情况下重新加载页面,您也可以自己查看)
关于wordpress - 当我在桌面上打开 Google Adsense 时,它没有显示在我的网站上,但在智能手机上显示良好,因为我使用的是 "sahifa v4.0"wordpress 主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21314065/