Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Add Updated date to the post

  • michaela.vrankova

    Hi,

    I’ve been searching the forum but I cant find the step by step on how to do this.

    I would like to add the post date + update date on each post on my blog. How can I achieve this?

    I using the default theme date.

    Blog post: https://www.vrankova.cz/k-cemu-jsou-dobre-persony-a-co-to-je/

    On code is:
    <div class=”entry-meta”>
    <span class=”posted-on”>
    <time class=”updated” datetime=”2025-11-27T20:00:08+01:00″ itemprop=”dateModified”>27. 11. 2025</time>
    <time class=”entry-date published” datetime=”2017-03-17T21:31:56+01:00″ itemprop=”datePublished”>17. 3. 2017</time>
    </span>
    </div>

    But at frontend there is only 17. 3. 2017.

    I would like to print:
    Posted: 17.3.2017
    Updated: 27.11.2025

    Thanks for your help.

  • Hi there,

    Try this CSS:

    body.single .posted-on .updated {
        display: block;
    }
    
    body.single .posted-on .updated:before {
        content: "Updated: ";
    }
    
    body.single .posted-on .published:before {
        content: "Posted: ";
    }
  • michaela.vrankova

    It was easy. Great. Thanks.

  • You are welcome   🙂

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