admin管理员组文章数量:1429567
I am trying to hide a span class as per the CSS class within the body tag.
Here is the HTML I am trying to hide:
<span class='efav-span'><img src="">Content here</span>
And the body tag is this:
<body class="post-template-default single single-post postid-5613 single-format-standard wp-custom-logo wp-embed-responsive cookies-not-set post-image-above-header post-image-aligned-center no-sidebar nav-float-right fluid-header separate-containers active-footer-widgets-0 header-aligned-left dropdown-hover" itemtype="" itemscope>
So what I thought would easily work is this:
.single.efav-span {display: none}
But oddly it doesn't?
I want that span to be hidden on ALL regular WordPress Posts.
Any idea what I am doing wrong?
Thanks
I am trying to hide a span class as per the CSS class within the body tag.
Here is the HTML I am trying to hide:
<span class='efav-span'><img src="">Content here</span>
And the body tag is this:
<body class="post-template-default single single-post postid-5613 single-format-standard wp-custom-logo wp-embed-responsive cookies-not-set post-image-above-header post-image-aligned-center no-sidebar nav-float-right fluid-header separate-containers active-footer-widgets-0 header-aligned-left dropdown-hover" itemtype="https://schema/Blog" itemscope>
So what I thought would easily work is this:
.single.efav-span {display: none}
But oddly it doesn't?
I want that span to be hidden on ALL regular WordPress Posts.
Any idea what I am doing wrong?
Thanks
Share Improve this question asked Jun 3, 2019 at 11:25 HenryHenry 9831 gold badge8 silver badges31 bronze badges1 Answer
Reset to default 0Answer was simple:
.single .efav-span {display: none}
add spacing to each element
本文标签: postsDifficulty hiding a span per a body class within WordPress
版权声明:本文标题:posts - Difficulty hiding a span per a body class within WordPress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745441326a2658462.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论