Archived topic
Display original date and last update date
20 replies · Started by Gianluca on January 11, 2020
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.
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.
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
Give this a shot:
.entry-meta > *:last-child:first-child {
border-left: 0;
padding-left: 0;
margin-left: 0;
}
It worked, thank you :)
You're welcome :)