Hi,
I was to remove the publish date on my blog post and show only the update date. I found your article on how to do it in CSS but it didn’t quite work.
This is the code I was supposed to add:
add_filter( ‘generate_post_date_show_updated_only’, ‘__return_true’ );
Right now, this is my CSS look like:
.posted-on .updated {
display: inline-block;
margin-right: 15px;
}
.posted-on .updated:before {
content: “LAST UPDATED: “;
}
.posted-on .published:before {
content: “PUBLISHED ON: “;
}
———-
I tried removing this part:
}
.posted-on .updated:before {
content: “LAST UPDATED: “;
}
.posted-on .published:before {
content: “PUBLISHED ON: “;
}
to replace with the code earlier but it only removed the words “LAST UPDATED and PUBLISHED ON”. Both dates are still showing. Here’s a screenshot: https://prnt.sc/vljmxq
Thank you!
Mary