Archived topic
Insert "Last edited" (Actualizado ddmmyyyy.)
15 replies · Started by JOSE on August 16, 2019
Hi,
I'd like to insert in the post "Last edited" in Spanish "Actualizado ddmmyyyy" but I don't know how.
I tried
.posted-on .updated:before {
content: "Last Updated: ";
}
,but it's not working.
Thanks
Hi there,
for the archive pages try this:
.posted-on:before {
content: 'Last Updated: ';
}
For the front page it uses a mixture of WP Show Posts:
.wp-show-posts-entry-date {
display: none;
}
.wp-show-posts-updated {
display: inline;
}
.wp-show-posts-posted-on:before {
content: 'Last Updated: ';
}
And Elementor:
.elementor-posts .elementor-post__card .elementor-post__meta-data .elementor-post-date:before {
content: '• Last Updated: ' !important;
}
Hi,
Only I'd like for the archive pages... I tried it but only show the publish date. I use the template Dispatch.
Thanks
Add this CSS as well:
.posted-on .updated {
display: inline;
}
.posted-on .published {
display: none;
}
Hi,
I add with Simple Css and the same... only the published date
Thanks
I just checked the site and its displaying the Updated Date. Try clearing browser caches.
No idea what happen... I clear caches an the same... I go inside one entry for example the first, second or third and I see the photo, title, autor, publish date and category. I'll try with other pc.
Aah for the Single Posts as you're using the Header Element use this CSS instead:
.posted-on .updated, .page-hero time.updated {
display: inline;
}
.posted-on .published, .page-hero time.published {
display: none;
}
Changes,
With this code not show the published date and not the edited date with
.posted-on .updated, .page-hero time.updated {
display: inline;
}
.posted-on .published, .page-hero time.published {
display: inline;
}
Show the published date (I'd like it) and not the last edited date.
sorry
So just to be clear can you answer:
Archives - Display Published or Updated ?
Single Post - Display Published or Updated ?
Sorry if i have misunderstood.
For me it's more important Single Post.
Only display Published, I'd like both published and updated
So if on the single post you want to display both dates then this CSS:
.page-hero time.publsihed, .page-hero time.updated {
display: inline !important;
}
To add content before the two dates then this:
.page-hero time.updated:before {
content: 'Last Updated: ';
}
.page-hero time.published:before {
content: ' | Published: ';
}
Perfect!
A small thing... haw I can put before the published date that the updated day?
Thanks
Try this CSS:
.page-hero .inside-page-hero > p {
display: flex;
justify-content: center;
}
.page-hero .inside-page-hero > p > span {
order: -3;
}
.page-hero .inside-page-hero > p > time.published {
order: -2;
}
.page-hero .inside-page-hero > p > * {
margin-right: 0.5em;
margin-left: 0.5em;
}
Perfect!
Thank you!!!