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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?