- This topic has 9 replies, 5 voices, and was last updated 1 year, 8 months ago by
Tom.
-
AuthorPosts
-
October 4, 2020 at 2:39 am #1471296
Georgios
Hi,
Tried below CSS code that works correctly to blog posts overview page, but in single blog posts, the date is the published and not the updated one.
.posted-on .updated {
display: inline-block;
}.posted-on .updated + .entry-date {
display: none;
}.posted-on .updated:before {
content: “Last Updated “;
}Thank you for your support.
October 4, 2020 at 9:26 am #1471849David
StaffCustomer SupportHi there,
try this CSS:
posted-on .updated, .page-hero time.updated { display: inline-block !important; } .posted-on .updated+.entry-date, .page-hero .updated+.entry-date { display: none; } .posted-on .updated:before, .page-hero .updated:before { content: "Last Updated "; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 4, 2020 at 4:58 pm #1472225Abdul
Hi David,
Even i need this option. when i added this code in the additional CSS no dates were displayed in my single posts.
can you please let me know how to fix it.
Also should I open a separate thread or if this is fine ?Thanks
October 4, 2020 at 5:03 pm #1472226Elvin
StaffCustomer SupportHi Adbul,
Also should I open a separate thread or if this is fine ?
Yes you can open a separate thread/topic adding your own details to it (link to site, details to issue, etc) so we can craft the best answer specifically for your site.
We’ll make sure it’ll get addressed. Thank you.
A wise man once said:
"Have you cleared your cache?"October 4, 2020 at 11:36 pm #1472422Georgios
Hi David,
All good now. Kept the first CSS for the overview page plus yours for the single posts pages.
Based on other posts I have to add a date filter as well as Tom provided previously so as Google to pick up only the updated date?
https://generatepress.com/forums/topic/date-not-updating-in-google/page/2/#post-1308177Thank you for the valuable support!
George
October 5, 2020 at 12:50 am #1472518David
StaffCustomer SupportGlad to be of help.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2020 at 6:31 am #1488458Georgios
Tried also adding a date filter as well as Tom provided previously so as Google to pick up only the updated date: https://generatepress.com/forums/topic/date-not-updating-in-google/page/2/#post-1308177 but it doesn’t seem to work.
Both dates are still showing in the code.
October 14, 2020 at 8:18 am #1488770David
StaffCustomer SupportFor the header elements you can use this snippet:
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2020 at 10:37 am #1488999Georgios
Hi David,
the header element works OK.
Google reads and shows the posted date vs the updated date. Per Tom instructions (https://generatepress.com/forums/topic/date-not-updating-in-google/page/2/#post-1308177 ), from what I understand, there is a function that I can use so as to remove the posted date from page source code when the updated date is present.
Thank you!
George
October 14, 2020 at 1:37 pm #1489222Tom
Lead DeveloperLead DeveloperYou could try this: https://generatepress.com/forums/topic/correct-way-to-show-only-modified-date-on-page-hero/#post-1344687
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.