Archived topic
Modified date on front page and all posts
5 replies · Started by Orlando on March 3, 2019
Hi:
I want to display the modified date on the front page (done at this time) and also on all my posts, which BTW have a custom header. I've tried the shortcode (from a gist in another post here, doesn't work, prints the date below the header), changing the CSS display value (also did not work).
Can you please give me some pointers on how to achieve this?
Thanks in advance.
Hi there,
try this CSS:
.single-post .inside-page-header time.published {
display: none;
}
.single-post .inside-page-header time.updated {
display: inline !important;
}
Thank you David, it's working now.
One more question: how can I change it to something like "Posted by <author>, updated in <date>"?
Thank you for your time.
You can edit the Page Header which can be found in:
Appearance > Elements > Legacy Page Headers. You should see the code in the right header element where you can edit / add text before those elements.
Thank you again David.
You're welcome