css – Trying to hide HENTRY (Author Meta Data) from a Post ID


I am trying to hide the hentry class from a particular post ID – not sure why it doesn’t work for me….

Here’s the HTML

<header class="entry-header">
        <h1 class="entry-title">Post A</h1>

    <div class="entry-meta">
            <span class="posted-on">
        <a href="XX" title="3:51 am" rel="bookmark">
          <time class="entry-date published" datetime="XXXX">June 22, 2021</time>
        <span class="byline">
        <span class="author vcard"><a class="url fn n" href="XXX" title="XXX">
        <span class="__cf_email__" data-cfemail="XXX">[email&#160;protected]</span></a></span></span>
                <span class="comments-link"><a href="XXX">Leave a comment</a></span>
                    <!-- .entry-meta -->

    <!-- .entry-header -->

And this is my CSS:

.postid-7 .hentry .entry-meta {
    display: none;

Not sure where I am going wrong here….

henry 5 months 2021-06-21T23:30:05-05:00 0 Answers 0 views 0

Leave an answer