Archived topic
Is there a way to show the original posted date and the updated date?
12 replies · Started by Heath on March 31, 2022
Is there a way to show the original date a post was published and also show the updated date if a particular post has been updated?
Hi Heath,
You can use this CSS:
.posted-on .updated {
display: inline-block;
}
I inserted the CSS but it still only shows the updated date.
Aldo how do I get a space between updated on: and the date?
Example is below
Updated on:March 31 is how it shows but should show as updated on: March 31
Here is a screen shot in the private field as well.
If there'supdated on: before the updated date, it means you've already added some CSS to your site.
In that case, I'll have to see the live site with CSS.
Can you link me to a post?
Yes it is in the private field.
Ah you are using block element to build the post mata.
Then it's not the default post meta, the CSS I provided won't work.
In this case, you would not need any CSS, you just need to add the published date by yourself in the block element, just like how you add the updated date.
And the updated: is the before text, you can just enter a space after the :
I'm sorry for my confusion but I have no idea where to input this.
Go to appearance > elements, find the Block - Post Meta Template which assigned to single post.
In the element, select the headline block which presents the post date, disable the Replace with updated date option.
https://www.screencast.com/t/RGoX9xHp
Add another headline block for the updated date, do the setting as below:
https://www.screencast.com/t/RqE4Dus3Hel
To have the spacing between the updated:text and the date, you can enter a space after the :
https://www.screencast.com/t/07AuZIqG5x
This still isn't showing update date and then a separate updated date for me.
Hi Heath,
To clarify, my we know what you mean by having an Update date and a separate Updated date?
Right now this is what is see from my end: https://share.getcloudapp.com/E0ugmQPO
Are you referring to something else?
Kindly let us know. Hope to hear from you soon. :)
Sorry, I mean posted date and then updated date if a post is updated. Is there a way to show both?
Yes, this is possible.
In the Block - Post Meta Template, kindly create a new Headline Block or you may also duplicate the Headline Block which outputs the updated date.
Then, set the Date type to Published date and set the Before text as well.
For example: https://share.getcloudapp.com/X6uEnyeE
This should allow you to display the posted date and the updated date.
Hope this clarifies. Kindly let us know if further assistance is needed. :)