- This topic has 7 replies, 3 voices, and was last updated 5 years, 6 months ago by
Elvin.
-
AuthorPosts
-
October 18, 2020 at 11:32 pm #1495029
Paul
Are there any ways to change the updated time of the blog articles from generatepress theme customizer?
For example: I published a new blog article on September 30, 2020, but i added new contents based on the old one on Oct 19/, then here it(https://prnt.sc/v22w23) will show the new date (October 19,2020) ,
where do I make some settings on customizer or extra CSS?
thanks in advance
regardsOctober 18, 2020 at 11:35 pm #1495033Elvin
StaffCustomer SupportHi,
I believe this may help you w/ what you’re trying to do.
https://docs.generatepress.com/article/show-the-updated-post-date/October 18, 2020 at 11:48 pm #1495046Paul
HI,
Thanks for quick reply.i checked the link you send me, there are two ways included:
one is to just copy and add the CSS code to Appearance, Customize, Simple CSS
.posted-on .updated {
display: inline-block;
}.posted-on .updated + .entry-date {
display: none;
}second is to just add header element
function post_modified_date() {
return get_the_modified_date();
}
add_shortcode( ‘modified_date’, ‘post_modified_date’ );I can choose any one for this .
Im sorry that what is that? https://prnt.sc/v2382c
regards
October 19, 2020 at 2:55 am #1495218Elvin
StaffCustomer SupportMy bad. The previous one was for adding the updated time on page headers.
I think this is the better fit for what you’re trying to do.
https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-dateIm sorry that what is that? https://prnt.sc/v2382c
That is for when you want your date to have a “Last Updated” label before it.
And to be able to do that on blog posts, this is the proper css:
.posted-on .updated-date:before { content: "Last Updated: "; }What this will do is display your updated date in “Last Updated: October 19, 2020” instead of just the date.
October 19, 2020 at 3:12 am #1495249Paul
hi
i directly copy this code
.posted-on .updated {
display: inline-block;
}
.posted-on .updated + .entry-date {
display: none;
}to simple CSS, then published, then the blog articles will show the latest updated time.
it is also ok ?
October 19, 2020 at 6:32 am #1495440David
StaffCustomer SupportHi there,
yes that is ok
October 19, 2020 at 7:02 am #1495484Paul
ok, thanks
October 19, 2020 at 12:52 pm #1496125Elvin
StaffCustomer SupportNo problem. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.