Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionReally not sure why I am struggling here but I am trying to hide this div:
<div class="qodef-post-info-category"> content here which I want to HIDE on this template only </div>
I thought that this would work but no joy
body.single-doctor.qodef-post-info-category {
display: none;
}
This is the WordPress body tag meta info:
<body class="doctor-template-default single single-doctor postid-4633 qode-core-1.1.1 blush child-child-ver-1.0.1 blush-ver-1.3 qodef-smooth-page-transitions qodef-smooth-page-transitions-fadeout qodef-grid-1100 qodef-sticky-header-on-scroll-down-up qodef-dropdown-default qodef-header-standard qodef-menu-area-shadow-disable qodef-menu-area-in-grid-shadow-disable qodef-menu-area-border-disable qodef-menu-area-in-grid-border-disable qodef-logo-area-border-disable qodef-logo-area-in-grid-border-disable qodef-side-menu-slide-from-right qodef-default-mobile-header qodef-sticky-up-mobile-header wpb-js-composer js-comp-ver-6.0.5 vc_responsive" itemscope itemtype="//schema/WebPage">
It has to be hidden per TEMPLATE...
Thanks for all help.
PS I have also tried !important and no joy...
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionReally not sure why I am struggling here but I am trying to hide this div:
<div class="qodef-post-info-category"> content here which I want to HIDE on this template only </div>
I thought that this would work but no joy
body.single-doctor.qodef-post-info-category {
display: none;
}
This is the WordPress body tag meta info:
<body class="doctor-template-default single single-doctor postid-4633 qode-core-1.1.1 blush child-child-ver-1.0.1 blush-ver-1.3 qodef-smooth-page-transitions qodef-smooth-page-transitions-fadeout qodef-grid-1100 qodef-sticky-header-on-scroll-down-up qodef-dropdown-default qodef-header-standard qodef-menu-area-shadow-disable qodef-menu-area-in-grid-shadow-disable qodef-menu-area-border-disable qodef-menu-area-in-grid-border-disable qodef-logo-area-border-disable qodef-logo-area-in-grid-border-disable qodef-side-menu-slide-from-right qodef-default-mobile-header qodef-sticky-up-mobile-header wpb-js-composer js-comp-ver-6.0.5 vc_responsive" itemscope itemtype="//schema/WebPage">
It has to be hidden per TEMPLATE...
Thanks for all help.
PS I have also tried !important and no joy...
Share Improve this question asked Feb 28, 2020 at 10:40 HenryHenry 9831 gold badge8 silver badges31 bronze badges1 Answer
Reset to default 0Change your CSS to:
body.single-doctor .qodef-post-info-category {
display: none;
}
Must have a SPACE between elements declaration.