Recent searches
No recent searches
Promoted article - Adding a Timestamp
Answered
Posted Mar 12, 2019
Does anyone have a suggestion on how to add an article updated timestamp on Promoted Article items listed on the homepage of the default template?
0
7
7 comments
Nicole Saunders
Hey Stefano -
You would need to apply some custom code to your theme in order to accomplish this. I've pinged some of our customization experts to see if they could advise you on this.
0
Sebastiaan Wijchers
Hey Stefano,
When you go to 'Customize design' and click the 'Edit code' button of your theme. Look for the file: 'home_page.hbs'
Starting at line 39 you'll find something like this:
Now you can edit the line with {{title}} to something like this:
To get this result:
You can also use something like {{date edited_at timeago=true}} so it will display '10 minutes ago' and you probably want to make it look better. Maybe on a new line and with a smaller font or so.
0
Stefano Nguma
Hey Sebasttian! Exactly what I'm looking for! I give it a shot and get if I have any problems but it looks pretty straight-forward.
Thanks again!
0
Stefano Nguma
Sorry for misspelling your name ... Sebastiaan
0
Sebastiaan Wijchers
You're welcome, and don't worry!
If you want to know more about the date helper and formatting etc, you can have a look at the documentation:
https://developer.zendesk.com/apps/docs/help-center-templates/helpers#date-helper
0
YUYA YAMAGUCHI
hello there,
I would like to change the notation of the home_page.hbs timestamp.
I tried to describe it using [date helper] as a reference, but it didn't show up as I expected.
0
Cheeny Aban
Hi Yuya Yamaguchi!
Thank you for sending a post on our Community.
Can you elaborate further on the change that you are trying to do on the homep_page.hbs?
All the best
0