- This topic has 15 replies, 2 voices, and was last updated 4 years, 8 months ago by David.
-
AuthorPosts
-
August 16, 2019 at 3:53 am #985537JOSE
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.
ThanksAugust 16, 2019 at 5:52 am #985601DavidStaffCustomer SupportHi 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; }
August 16, 2019 at 6:00 am #985607JOSEHi,
Only I’d like for the archive pages… I tried it but only show the publish date. I use the template Dispatch.
ThanksAugust 16, 2019 at 6:13 am #985622DavidStaffCustomer SupportAdd this CSS as well:
.posted-on .updated { display: inline; } .posted-on .published { display: none; }
August 16, 2019 at 6:27 am #985635JOSEHi,
I add with Simple Css and the same… only the published date
ThanksAugust 16, 2019 at 6:47 am #985650DavidStaffCustomer SupportI just checked the site and its displaying the Updated Date. Try clearing browser caches.
August 16, 2019 at 7:06 am #985672JOSENo 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.
August 16, 2019 at 7:10 am #985676DavidStaffCustomer SupportAah 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; }
August 16, 2019 at 7:24 am #985687JOSEChanges,
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.
sorryAugust 16, 2019 at 7:44 am #985695DavidStaffCustomer SupportSo just to be clear can you answer:
Archives – Display Published or Updated ?
Single Post – Display Published or Updated ?Sorry if i have misunderstood.
August 16, 2019 at 7:47 am #985698JOSEFor me it’s more important Single Post.
Only display Published, I’d like both published and updatedAugust 16, 2019 at 9:17 am #985888DavidStaffCustomer SupportSo 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: '; }
August 17, 2019 at 1:54 am #986318JOSEPerfect!
A small thing… haw I can put before the published date that the updated day?
ThanksAugust 17, 2019 at 5:12 am #986407DavidStaffCustomer SupportTry 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; }
August 17, 2019 at 6:13 am #986438JOSEPerfect!
Thank you!!! -
AuthorPosts
- You must be logged in to reply to this topic.