Site logo

Archived topic

Updated On not showing after adding the code in additional CSS

9 replies · Started by Bijaya on March 20, 2022

Viewing posts 1–10 of 10

I am facing the problem in 2 sites, but I am sending you one in which I have implemented one.

No, I don't want this method.

I want an Additional CSS code.

Hi there.

CSS cannot generate HTML - its doing exactly what it is supposed to do. Problem is your posts are not generating an updated date.

Do you have any other codes ( NOT CSS ) relating to the Post Meta ?

When I am adding the below code in my other site,, its showing the Updated date.

Also I am using the same theme and design.

.single .posted-on .updated {
display: block;
}
.single .posted-on .published {
display: none;
}
.single .posted-on .updated:before {
content: "Updated: ";
}

On the site that is working you have the correct HTML for it:

https://www.screencast.com/t/kazRsmhDjgnG

You see there are <time> elements for updated and published.

On your other site there is only the published.

This happens for one of two reasons:

1. You have not updated the post and therefore there is no updated date.
2. Some other code is affecting it.

Can you try updating one of your posts ?

Thanks for the fast promp,

Yes, after updating the content now the updated date is showing.

This archived topic is closed to new replies.