dtjkl42086 2013-08-01 14:57
浏览 11
已采纳

为什么标题小部件无法在Google Chrome上显示?

I have customized my Wordpress website template and added a header widget. For reference, the website is tuts.iniladri.com

But I cant understand why the header widget is not displaying on Google Chrome? Currently I tested only in IE, Firefox and Chrome and Chrome is not showing it at all.

Here is the code I used in the header.php file

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

And in functions.php file I used this:

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>',
) );
}

Please help me with this...

Thanks

  • 写回答

1条回答 默认 最新

  • dongzuan4860 2013-08-01 15:00
    关注

    You're probably using AdBlock and forgetting to turn it off on this domain. It seems something in the header triggers it. Try refreshing the page without AdBlock.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line