[Support request] Insert "Last edited" (Actualizado ddmmyyyy.)

Home Forums Support Insert "Last edited" (Actualizado ddmmyyyy.)

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #985537
    JOSE

    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

    #985601
    David
    Staff
    Customer Support

    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;
    }
    #985607
    JOSE

    Hi,
    Only I’d like for the archive pages… I tried it but only show the publish date. I use the template Dispatch.
    Thanks

    #985622
    David
    Staff
    Customer Support

    Add this CSS as well:

    .posted-on .updated {
        display: inline;
    }
    .posted-on .published {
        display: none;
    }
    #985635
    JOSE

    Hi,
    I add with Simple Css and the same… only the published date
    Thanks

    #985650
    David
    Staff
    Customer Support

    I just checked the site and its displaying the Updated Date. Try clearing browser caches.

    #985672
    JOSE

    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.

    #985676
    David
    Staff
    Customer Support

    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;
    }
    #985687
    JOSE

    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

    #985695
    David
    Staff
    Customer Support

    So just to be clear can you answer:

    Archives – Display Published or Updated ?
    Single Post – Display Published or Updated ?

    Sorry if i have misunderstood.

    #985698
    JOSE

    For me it’s more important Single Post.
    Only display Published, I’d like both published and updated

    #985888
    David
    Staff
    Customer Support

    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: ';
    }
    #986318
    JOSE

    Perfect!
    A small thing… haw I can put before the published date that the updated day?
    Thanks

    #986407
    David
    Staff
    Customer Support

    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;
    }
    #986438
    JOSE

    Perfect!
    Thank you!!!

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.