真的不知道我为什么在这里挣扎,但我试图隐藏这个div:
<div class="qodef-post-info-category"> content here which I want to HIDE on this template only </div>
我原以为这会管用,但没有乐趣
body.single-doctor.qodef-post-info-category {
display: none;
}
这是WordPress正文标记元信息:
<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.org/WebPage">
它必须根据模板隐藏。。。
谢谢你的帮助。
PS我也试过了!important 没有快乐。。。