• Resolved .mau.

    (@mau-1)


    After some years, I noticed that the posts on my blog show only the publication date and not the time. (I tried a couple of different themes, so I think I can exclude it is an effect of the theme). Following the advice of https://www.ads-software.com/support/topic/show-post-date-and-updated-date/ , since at that point I would also add modification date, I added in Additional CSS the snippet

    .posted-on .updated {
        display: inline-block;
    }
    .posted-on .updated + .entry-date {
        display: !important;
    }
    .entry-date:before {
        content: "Pubblicato il: ";
    }
    .posted-on .updated:before {
        content: "Aggiornato il: " !important;
    }

    Now the text before entry-date is the one I put, but time still eludes me. Looking at the source code of the blog page, I see

    <a href="https://xmau.com/wp/notiziole/2022/11/22/perche-bookwyrm-non-puo-funzionare/" title="04:04" rel="bookmark" class="entry-date"><time datetime="2022-11-22T04:04:39+01:00" pubdate>2022-11-22</time></a>

    and I don’t understand why the time is put in a title parameter. Could somebody help me?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mario Santos

    (@santosguillamot)

    Hi @mau-1!

    Have you tried formatting the date in Settings -> General -> Date format? I believe that, if you want to apply that to all the dates on your site, you could add something like Y-m-d H:i. You can take a look at a deeper explanation in the Formatting Date and Time guide.

    Thread Starter .mau.

    (@mau-1)

    was it that simple? ??

    I looked at that section of settings, but since all examples of date used only a combination of Y/M/D I did not think of adding other formatting options.

    Thanks a lot! .mau.

    • This reply was modified 2 years, 4 months ago by .mau..
    Mario Santos

    (@santosguillamot)

    Really glad it helped! It’s actually kind of tricky, you are right all the examples are only using Y/M/D. I had to search for that.

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘show time of post together with date’ is closed to new replies.