[Resolved] Display original date and last update date

Home Forums Support [Resolved] Display original date and last update date

Home Forums Support Display original date and last update date

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #1135540
    Gian

    Thanks Tom,

    I’m not sure what to do in this case.

    What is the HTML code to remove the published date completely? I’ll probably run some tests and let you know.

    I’ve edited the post, there you can find the URL with both dates that show the published date (and not the updated date) in search engines.

    #1135645
    Tom
    Lead Developer
    Lead Developer

    This code will make it so only the updated or published date appears, depending on which one applies: https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-date

    In my experience, only having one date on the page is the best way to get it in the search results.

    #1154670
    Gian

    Hi Tom,

    if I use the Example 1 here https://docs.generatepress.com/article/entry-meta-style/

    and on archive pages I only want to display the post date, is it possible to remove the little divider (see here for example https://imgur.com/a/D0VlPLV)?

    Thank you

    #1154715
    Tom
    Lead Developer
    Lead Developer

    Give this a shot:

    .entry-meta > *:last-child:first-child {
        border-left: 0;
        padding-left: 0;
        margin-left: 0;
    }
    #1154856
    Gian

    It worked, thank you ๐Ÿ™‚

    #1155657
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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