Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

twenty thirteen date formatting

Hello guys. i'm working on the twenty thirteen theme and I made good progress, and my web site is almost finish. I have few small problems. I want to format the meta information (date, time...). I was able to do this with the meta information inside the header (entry-header) but cant do the same with the meta information inside the comments section. each comment has meta info - like the time it was create and so on. I cant find the function that create that info output. any one with twenty thirteen experience? maybe you can help me. :)

1 Answer

Hi Alon,

If you're looking to change how the date / time is displayed you can do so via Settings > General and scroll down to Date Format.

You can then choose the format you'd like from the samples given or set a custom format using the examples in the Codex.

For example a custom date of jS F Y would display as 24th January 2015.

Apologies if I'm misunderstanding the problem. If so, can you provide an example of how you'd like it to display please?

Thanks.

-Rich

WOW I've made it much harder. it works! I still have one more thing. My blog is in Hebrew and I want to remove the "at" before the hour. I can add strings with the Date Format editor inside the admin panel but cant remove any.

Hi Alon,

No problem. Some of these examples in the Codex display without the 'at' in between. You may need to modify a template slightly rather than control it via the admin settings but hopefully this should give you an idea as to how.

-Rich