[Resolved] Showing date

Home Forums Support Showing date

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1258587
    Jee

    I added in code to show last updated date and published date on the permalink page. But I would like to show only the last updated date on the homepage and other landing pages. And I would like the date shown on the homepage and landing pages to only show the actual date without saying “Last updated.” What would be the code to do this?

    #1258641
    Leo
    Staff
    Customer Support

    Hi there,

    Sorry what code are you adding currently?

    Have you tried this?
    https://docs.generatepress.com/article/show-the-updated-post-date/

    #1258733
    Jee

    I have this which I want only on the permalink pages:

    /*last updated and published date*/
    .posted-on .updated {
    display: inline-block;
    margin-right: 15px;
    }

    .posted-on .published:before {
    content: “Published: “;
    }

    .posted-on .updated:before {
    content: “Last Updated: “;
    }

    What code can I put in to show just the lasted updated date everywhere else (homepage, category, search result pages).

    #1258774
    Jee

    I figured it out!

    Added this:
    .home .published {
    display: none;
    }

    .home .updated:before {
    display: inline-block;
    }

    #1258789
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.