[Resolved] Modified date on front page and all posts

Home Forums Support [Resolved] Modified date on front page and all posts

Home Forums Support Modified date on front page and all posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #827909
    Orlando

    Hi:

    I want to display the modified date on the front page (done at this time) and also on all my posts, which BTW have a custom header. I’ve tried the shortcode (from a gist in another post here, doesn’t work, prints the date below the header), changing the CSS display value (also did not work).

    Can you please give me some pointers on how to achieve this?

    Thanks in advance.

    #828217
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .single-post .inside-page-header  time.published {
        display: none;
    }
    .single-post .inside-page-header time.updated {
        display: inline !important;
    }
    #828571
    Orlando

    Thank you David, it’s working now.

    One more question: how can I change it to something like “Posted by <author>, updated in <date>”?

    Thank you for your time.

    #828589
    David
    Staff
    Customer Support

    You can edit the Page Header which can be found in:

    Appearance > Elements > Legacy Page Headers. You should see the code in the right header element where you can edit / add text before those elements.

    #828594
    Orlando

    Thank you again David.

    #828622
    David
    Staff
    Customer Support

    You’re welcome

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