Wordpress: track down and remove pseudo element from wp_head [closed]

巧了我就是萌 提交于 2019-12-25 18:43:32

问题


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:


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.



来源:https://stackoverflow.com/questions/29065386/wordpress-track-down-and-remove-pseudo-element-from-wp-head

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!