[Resolved] modified date after date published

Home Forums Support [Resolved] modified date after date published

Home Forums Support modified date after date published

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #753130
    Charles

    Ok. I applied your code in the Customizer css:
    .posted-on .updated {
    display: inline-block;
    }

    .posted-on .updated:after{
    content: “Last updated:”;
    }
    The results are reversed.
    October 22 2018 Last Updated: October 6, 2018

    How can I make so it reads: October 6th, 2018 Last Updated: October 22, 2018?

    #753285
    Leo
    Staff
    Customer Support

    Hi there,

    Are you wanting that format on both archive and single post?

    #753297
    Charles

    Both. A default for every post.

    #753335
    Tom
    Lead Developer
    Lead Developer

    That’s happening because you’re using :after.

    It should be:

    .posted-on .updated:before {
        content: "Last Updated ";
    }
    #753398
    Charles

    The output with :before is this: Last updated: October 22, 2018 October 6,2018 which doesn’t follow the conventional order of publishing dates. It usually starts with the original publication date, followed by the date modified.
    I’d like to have it reordered that way: (Date Originally Published) xxxx then Last updated: xxxx
    How can I achieve that?

    #753950
    Tom
    Lead Developer
    Lead Developer

    You could try this as your full CSS:

    .posted-on a {
        display: flex;
    }
    
    .posted-on .updated {
        display: inline-block;
        order: 10;
        margin-left: 10px;
    }
    
    .posted-on .updated:before {
        content: "Last updated: "
    }
    #754077
    Charles

    Works great! Thanks for taking the time. BTW. I really like your product. Well worth the money spent.

    #754254
    Tom
    Lead Developer
    Lead Developer

    Thank you! Great to hear 🙂

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