Home › Forums › Support › Change published to update date This topic has 10 replies, 2 voices, and was last updated 2 years, 11 months ago by David. Viewing 11 posts - 1 through 11 (of 11 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. 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; } 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? 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; } 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 🙂 April 22, 2021 at 3:58 am #1744337 Andrew Hey guys I added this code (below) to my CSS as I only want to see ‘Last updated <DATE> By <AUTHOR> It works but the original ‘published’ date still remains also Any pointers? This is what I added (but now removed) .posted-on .updated { display: inline-block; } .posted-on .published:not(:last-child) { display: none; } .posted-on .updated:before { content: “Last updated: “; position: relative; } Thanks! April 22, 2021 at 4:06 am #1744347 Andrew don’t worry, I figured it after a bit more Googling! .posted-on .updated { display: inline-block; } .posted-on .updated + .entry-date { display: none; } .posted-on .updated:before { content: “Last Updated “; } April 22, 2021 at 5:32 am #1744440 DavidStaff Customer Support Glad to hear that! Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In