Archived topic
modified date after date published
7 replies · Started by Charles on December 10, 2018
Ok. I applied your code in the Customizer css:
.posted-on .updated {
display: inline-block;
}
.posted-on .updated:after{
content: "Last updated:";
}
The results are reversed.
October 22 2018 Last Updated: October 6, 2018
How can I make so it reads: October 6th, 2018 Last Updated: October 22, 2018?
Hi there,
Are you wanting that format on both archive and single post?
Both. A default for every post.
That's happening because you're using :after.
It should be:
.posted-on .updated:before {
content: "Last Updated ";
}
The output with :before is this: Last updated: October 22, 2018 October 6,2018 which doesn't follow the conventional order of publishing dates. It usually starts with the original publication date, followed by the date modified.
I'd like to have it reordered that way: (Date Originally Published) xxxx then Last updated: xxxx
How can I achieve that?
You could try this as your full CSS:
.posted-on a {
display: flex;
}
.posted-on .updated {
display: inline-block;
order: 10;
margin-left: 10px;
}
.posted-on .updated:before {
content: "Last updated: "
}
Works great! Thanks for taking the time. BTW. I really like your product. Well worth the money spent.
Thank you! Great to hear :)