Archived topic
Show Posted On Date on Blog Page instead of Last Updated
15 replies · Started by Jiren on August 24, 2019
I want to have it look like its newly posted on my Blog page instead of the text: Last updated on.
This CSS I had for Last Updated:
.posted-on .updated:before {
content: "Last updated: ";
}
.posted-on .updated {
display: inline-block;
}
.posted-on .published {
display: none;
}
I don´t know what exactly to modify to make the text on blog pages to "Posted on"
Hi there,
Remove the CSS above and add this only:
.posted-on .published {
content: "Posted on: ";
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Leo, I meant it like this. On the Blog Page the updated article should stay "Posted on", but if you click that Blog Post, the Post Site/Page shows you "Last Updated on".
-Blog Page: Posted on
-Post Site: Last updated on
Ahh ok this should be your full CSS:
.blog .posted-on .updated:before, .archive .posted-on .updated:before {
content: "Posted on: ";
}
.single .posted-on .updated:before {
content: "Updated on ";
}
.posted-on .updated {
display: inline-block;
}
.posted-on .published {
display: none;
}
That didn´t work out. Is there another simpler solution.
.posted-on .updated:before {
content: "Last updated: ";
}
.posted-on .updated {
display: inline-block;
}
.posted-on .published {
display: none;
}
This just has to be adjusted to display "Posted on" on the Blog Archive instead Last updated.
I'm not seeing my code being added.
Can you add my code above (only) and disable Autopmize and any other caching plugins you might be using?
I added the code now and removed the old. Blog Archive now shows the first posted on the date and I click on a post it shows me last updated day as the posted on.
Edited the code above:
https://generatepress.com/forums/topic/show-posted-on-date-on-blog-page-instead-of-last-updated/#post-993108
Can you give it another shot?
Added that code, now it shows the Posted on in the blog archive, but the Date is wrong, it should have the date of the last updated.
Sorry I'm a bit confused.
So on the blog archive page, you want to show the text of Posted on but the date should be the last updated date?
Right. Blog Archive: Posted On Date(which is the date of Last updated)
Single-post: Last Updated Date
Edited the CSS again:
https://generatepress.com/forums/topic/show-posted-on-date-on-blog-page-instead-of-last-updated/#post-993108
Let me know :)
Now its nearly correct, the "Posted on" text is missing on the Blog Archive
Sorry - should be good now:
https://generatepress.com/forums/topic/show-posted-on-date-on-blog-page-instead-of-last-updated/#post-993108
Finally. Thank you very much, Leo.