Archived topic
Adding date blog page articles
5 replies · Started by manaadiar on December 12, 2021
Hi, I want to know the code to show Post Date ONLY on the main blog page (https://www.shippingandfreightresource.com/articles/).. I have the full meta data in the single article page, but I want to display the date only in the articles page.. Can you pls assist..
Hi there,
This should help:
https://docs.generatepress.com/article/blog-content-layout/#archives
Hi Leo, these options were all right in the layout.. However, I used the below code to hide the other meta data in the archives page.. But it is hiding it in the single posts as well.. Can you suggest a change..?? What code do I use to show these in the single page but hide in the archives page..
.blog .cat-links, .entry-meta .comments-link, .entry-meta .tags-links, .reading-time {
display: none;
}
We can correct that CSS so it only applies on blog index page.
Try this CSS:
.blog .cat-links,
.blog .entry-meta .comments-link,
.blog .entry-meta .tags-links,
.blog .reading-time {
display: none;
}
Thank you Elvis.. It works..
No problem. :D