Archived topic
Show both published date and last update
11 replies · Started by Mary on December 18, 2019
Hi,
I found the way to show the last update instead of publish date. How can I show both? Like this: https://prnt.sc/qckty9
Thank you!
https://docs.generatepress.com/article/show-the-updated-post-date/
Hi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know :)
Hi Leo,
I've added the link on the original post.
Thanks!
Hi there,
Give this a shot:
.posted-on .updated {
display: inline-block;
margin-right: 15px;
}
.posted-on .published:before {
content: "Published On ";
}
Hi Tom,
That's great! Just one more thing, can I add the word "UPDATED ON" as well before the date?
See this screenshot: https://prnt.sc/qd8yhz
So it will show as "UPDATED: December 19, 2019 | PUBLISHED: September 3, 2019" ?
Thank you!
Mary
Edit this existing CSS:
.posted-on .updated {
content: "LAST UPDATED: ";
}
to this:
.posted-on .updated:before {
content: "LAST UPDATED: ";
}
Hello Leo,
That worked like a charm! Thank you so much!!!
No problem :)
Hi! And if i want to show both dates but UPDATE first and right down it the PUBLISHED date? Not inline, but like this:
Last Update: February 29
Published on: January 3
Any chance you can open a new topic for your question?
Thanks :)
Done! :)
Answered :)