Patch: show published and modified dates on pages

Hi Caroline, Lance, and other Ryu theme wrangler(s)! I’ve done a lot of CSS hacking on my Ryu installation, but I finally hit something I needed to change the theme code for: published and modified dates on pages.

Here’s the patch against Ryu 1.1. I’d love to see it incorporated into the next version!

Part of the WordPress.org Theme Unit Test for pages is that the post date not be displayed. To add it in the ryu_entry_meta() function and then hide it through CSS would seem a little excessive, so unfortunately, we probably won’t be merging the patch.

You are of course welcome to fork Ryu and modify it as you see fit or create a child theme with your changes. Creating a child theme would allow you to modify just a few parts while maintaining the ability to update Ryu without having your changes overwritten.

Thanks for the input and please let me know if you have any questions.

i love that the official themes generally have well thought out HTML elements, ids, and classes so that users can do heavy customization with CSS alone, so i was surprised that i had to resort to code to get dates on pages. it’d obviously be nice if the theme output them and hid them by default with CSS, so that users could opt in if they wanted.

i don’t think the patch adds much overhead (i’m happy to benchmark if you want), and it seems like hiding by default would pass the unit test…but you all are the pros, so up to you. thanks anyway!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Patch: show published and modified dates on pages’ is closed to new replies.