gpt4 book ai didi

php - 为什么标题小部件不显示在 Google Chrome 上?

转载 作者:太空宇宙 更新时间:2023-11-04 14:44:38 25 4
gpt4 key购买 nike

我自定义了我的 Wordpress 网站模板并添加了标题小部件。作为引用,网站是 tuts.iniladri.com

但我不明白为什么标题小部件不显示在 Google Chrome 上?目前我只在 IE、Firefox 和 Chrome 中测试过,Chrome 根本不显示。

这是我在 header.php 文件中使用的代码

<div id="headerad">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-2') ) : ?> <?php endif; ?>
</div>

在 functions.php 文件中我使用了这个:

function my_widgets_init() {
register_sidebar( array(
'name' => __( 'Header Area', 'Focus' ),
'id' => 'sidebar-2',
'description' => __( 'An optional widget area for your site header', 'your-theme' ),
'before_widget' => '<div id="%1$s" class="headwidget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3>',
'after_title' => '</h3>',
) );
}

请帮我解决这个...

谢谢

最佳答案

您可能正在使用 AdBlock 并忘记在此域上将其关闭。似乎标题中的某些内容会触发它。尝试在没有 AdBlock 的情况下刷新页面。

关于php - 为什么标题小部件不显示在 Google Chrome 上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17997533/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com