- This topic has 9 replies, 5 voices, and was last updated 3 years, 6 months ago by Tom.
-
AuthorPosts
-
October 4, 2020 at 2:39 am #1471296Georgios
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 #1471849DavidStaffCustomer 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 "; }
October 4, 2020 at 4:58 pm #1472225AbdulHi 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 #1472226ElvinStaffCustomer 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.
October 4, 2020 at 11:36 pm #1472422GeorgiosHi 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 #1472518DavidStaffCustomer SupportGlad to be of help.
October 14, 2020 at 6:31 am #1488458GeorgiosTried 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 #1488770DavidStaffCustomer SupportFor the header elements you can use this snippet:
October 14, 2020 at 10:37 am #1488999GeorgiosHi 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 #1489222TomLead DeveloperLead Developer -
AuthorPosts
- You must be logged in to reply to this topic.