Post date but not author, category or post comment

I’ve selected to show the date of a post, so have selected to post meta, but I can’t see a way to only show the date.

I don’t need the author as there is only one on the site, the category as there is only one category or the post a comment as comments have been removed.

I’ve tried doing it with CSS, but although it seems to works when testing in CSS Hero, adding the CSS to the theme settings section doesn’t hide them.

While writing this post, some suggestions appeared, and I tried to add the following css, but it didn’t work:

.p-meta > span:nth-child(1),
.p-meta > span:nth-child(2):after,
.p-meta > span:nth-child(3) {
display: none;
}

Thank you.

Hello There,

Thanks for posting in! To resolve your issue, simply update your custom css and use this instead:

.p-meta > span:nth-child(1),
.p-meta > span:nth-child(2):after,
.p-meta > span:nth-child(3),
.p-meta > span:nth-child(4) {
    display: none;
}

And by the way, I noticed that you have inserted an invalid css code. Please see the image below:

Hope this helps.

Thank you for the code, and noticing the error.

Unfortunately, the sections are still showing up when using the code.

Hey @Moonworks,

The code @RueNel gave should work. If it is working in the developer tools, it should work in your site provided there are no syntax errors in your CSS like the ones he pointed out. You can use an online tool like http://csslint.net/ to correct your CSS.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.