How to Show the Last Updated Post Date on Your Posts
It's time for your daily dose of Wordpress Wisdom! In today's quick tutorial I'll be showing you how you can easily display the "Last Updated" date for your posts using some simple CSS code! In the past, I had used a simple plugin for this, but as I was looking through the Generate Press documentation I found some simple code you can add that makes needing a plugin a thing of the past!
Let's dive into the video and I'll show you how!
Here's the CSS code you'll be copying and pasting into your Customizer:
.posted-on .updated {
display: inline-block;
}
.posted-on .updated + .entry-date {
display: none;
}
.posted-on .updated:before {
content: "Last Updated ";
}
As always, feel free to share this video to anyone needing help with this. If you have any Wordpress related questions that you'd like to see me create a tutorial for send me a private message or leave me a message on my profile.
If you want to check out all my Wordpress Wisdom tutorials feel free to head over to my blog.
Be productive!
Get your hands dirty!
Create that content!
Become the master of Wordpress you know you can be!
Join FREE & Launch Your Business!
Exclusive Bonus - Offer Ends at Midnight Today
00
Hours
:
00
Minutes
:
00
Seconds
2,000 AI Credits Worth $10 USD
Build a Logo + Website That Attracts Customers
400 Credits
Discover Hot Niches with AI Market Research
100 Credits
Create SEO Content That Ranks & Converts
800 Credits
Find Affiliate Offers Up to $500/Sale
10 Credits
Access a Community of 2.9M+ Members
Recent Comments
30
See more comments
Join FREE & Launch Your Business!
Exclusive Bonus - Offer Ends at Midnight Today
00
Hours
:
00
Minutes
:
00
Seconds
2,000 AI Credits Worth $10 USD
Build a Logo + Website That Attracts Customers
400 Credits
Discover Hot Niches with AI Market Research
100 Credits
Create SEO Content That Ranks & Converts
800 Credits
Find Affiliate Offers Up to $500/Sale
10 Credits
Access a Community of 2.9M+ Members
Hey Eric, I came back to this tutorial as I was updating my content. May I know how we can also show "published" date before the "last updated" date? I guess it's going to be a CSS code before "last updated" right?
Thanks:).
By default it will show the date it was published. This code is for replacing that with the date it was last updated so that updated content doesnβt look old and dated. Iβm not sure why youβd want both, but Iβm sure it can be done.
Got it Eric, π
I think one or the other is sufficient. If you original published date is from a ways back it can give the impression that the content is dated, so thatβs why the updated date is helpful. ππΌ
Excellent π