-
michaela.vrankova
Hi,
I’ve been searching the forum but I cant find the step by step on how to do this.
I would like to add the post date + update date on each post on my blog. How can I achieve this?
I using the default theme date.
Blog post: https://www.vrankova.cz/k-cemu-jsou-dobre-persony-a-co-to-je/
On code is:
<div class=”entry-meta”>
<span class=”posted-on”>
<time class=”updated” datetime=”2025-11-27T20:00:08+01:00″ itemprop=”dateModified”>27. 11. 2025</time>
<time class=”entry-date published” datetime=”2017-03-17T21:31:56+01:00″ itemprop=”datePublished”>17. 3. 2017</time>
</span>
</div>But at frontend there is only 17. 3. 2017.
I would like to print:
Posted: 17.3.2017
Updated: 27.11.2025Thanks for your help.
-
Hi there,
Try this CSS:
body.single .posted-on .updated { display: block; } body.single .posted-on .updated:before { content: "Updated: "; } body.single .posted-on .published:before { content: "Posted: "; } -
michaela.vrankova
It was easy. Great. Thanks.
-
You are welcome 🙂
- You must be logged in to reply to this topic.