posts - Difficulty hiding a span per a body class within WordPress

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

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Answer was simple:

.single .efav-span {display: none} 

add spacing to each element

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745441326a4627846.html

相关推荐

  • posts - Difficulty hiding a span per a body class within WordPress

    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

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信