Search for: Log In Free Support [Resolved] Change published to update date Home › Forums › Support › Change published to update date This topic has 7 replies, 2 voices, and was last updated 3 years, 10 months ago by Tom. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts April 17, 2017 at 9:08 am #306866 Deniz Akay Hi, I want to replace published date with the last updated date on post pages. Normally the code looks like this: Last updated on <time datetime="<?php the_modified_time('Y-m-d'); ?>"><?php the_modified_time('F jS, Y'); ?></time> I couldn’t find which file I should change. Thanks. GeneratePress 1.3.46 April 17, 2017 at 9:43 am #306890 TomLead Developer Lead Developer You could try this CSS: .posted-on .updated { display: inline-block; } .posted-on .published:not(:last-child) { display: none; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development April 17, 2017 at 10:10 am #306903 Deniz Akay I used “posted-on” (not post-on) on both CSS lines and it worked. Thanks. How can I add the words “Last updated:” before update date? April 17, 2017 at 2:21 pm #306994 TomLead Developer Lead Developer Just edited my CSS above – can you give it another try? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development April 17, 2017 at 2:24 pm #306995 Deniz Akay Thanks, it works. How can I add the words “Last updated:” before update date? April 17, 2017 at 7:30 pm #307079 TomLead Developer Lead Developer You could try: .posted-on .updated:before { content: "Last updated: "; position: relative; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development April 18, 2017 at 12:19 am #307129 Deniz Akay That’s great! Many thanks for your support. April 18, 2017 at 9:22 am #307352 TomLead Developer Lead Developer You’re welcome 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In