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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745441326a4627846.html
评论列表(0条)