• Resolved Celebrating Life

    (@celebrating-life)


    I am trying to remove the post meta data below the post title. I’m using the Virtue Theme.

    Under each post title there is a folder icon, then the words ‘posted in’: then the categories it’s posted in,and then the number of comments on the post. I would like to be able to remove all this information.

    I don’t know anything about coding.

    The site is

Viewing 7 replies - 1 through 7 (of 7 total)
  • Removing this should be quite simple. Warning though, this will require you editing a code file.

    All you need to do is log into your admin account, and navigate to the Appearance > Editor section. Select your active theme (in this case the Virtue Theme) in the dropdown and click select. Now on the right side of the page find the style.css file, click on it when you find it. Scroll to the bottom of that file in the text editor in the middle of the page. Paste the following code at the bottom and click the save button.

    .entry-meta {
    display:none !important;
    }

    Hopefully that fixes it for you.

    Note that if you do have a child theme then you will want to do it in that, otherwise when you update the Virtue theme you will lose this customization.

    Thread Starter Celebrating Life

    (@celebrating-life)

    Matthew – thank you so much for responding. I entered the code you supplied, but nothing happened.

    Could the reason that the code doesn’t work is because I’m using ‘Categories’ instead of pages?

    The site is https://celebratinglifemag.com.

    Try this CSS code.

    .subhead {
    display: none;
    }

    The Virtue theme doesn’t use the .entry-meta class. It’s all wrapped up in a div with the class “subhead”. It looks like this:

    <div class="subhead">
        <span class="postauthortop author vcard">
        <i class="icon-user"></i> by  <span itemprop="author"><a rel="author" class="fn" href="https://site.com/author/author/">author name</a></span> |</span>
    
        <span class="postedintop"><i class="icon-folder-open"></i> posted in: <a rel="category tag" href="https://site.com/category/uncategorized/">Uncategorized</a></span>     <span class="kad-hidepostedin">|</span>
        <span class="postcommentscount">
        <i class="icon-comments-alt"></i> 0    </span>
    </div>

    I’m not sure changing the css to hide something called “subhead” is a good idea, to put it mildly. You might have to hide .postauthortop, .postedintop and .postcommentscount.

    .postauthortop, .postedintop, .postcommentscount, .kad-hidepostedin {
    display:none !important;
    }

    But in any event, don’t modify the css files unless you’re working in a child theme. Virtue has been updated at least 11 times just this year, and each time your css changes would have been nuked.

    The customizer for this theme has a section for Advanced Settings, which has a box for custom css. Put your code there and it will stick through any future upgrades.

    Thread Starter Celebrating Life

    (@celebrating-life)

    Thank you so much!! That did it.

    I am extremely grateful for your help.

    Thank you.

    Thread Starter Celebrating Life

    (@celebrating-life)

    Thank you to Matthew for resolving this for me.

    Awesome! Glad I was able to be of assistance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing Post Meta Data below Post Title – Virtue Theme’ is closed to new replies.