dousheng3364 2015-03-15 19:48
浏览 58
已采纳

Wordpress:跟踪并删除wp_head中的伪元素[关闭]

I have a site visible here where I have created a child theme in order to add a custom header and footer from the rest of the (non blog) website.

I've removed everthing from the existing header apart from <?php wp_head(); ?> as this is required to call many other elements in the page. However at larger screen resolutions there is what appears to be a div present on the left hand side of the screen, which I would like to remove.

using firebug this element appears to be in the body, but i couldn't track it down any further. This must be a pseudo element of some kind?

Then i will be able to add in my header.

  • 写回答

1条回答 默认 最新

  • drvpv7995 2015-03-15 20:03
    关注

    In your stylesheet, you have:

    @media screen and (min-width: 59.6875em)
    body:before {
    ...
    }
    

    This body:before pseudo-element is what is creating that "div" on the left hand side of the screen.

    Note The psuedo element properties begin on line 3893 of style.css?ver=4.1.1.

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

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘