Hi, i am wondering if there is any way of adding the date and time to the home page? I have searched for very long, but nothing to find out there. I have seen some stores that have it. I would also like to have a special font, is that possible? Thanks!
Topic summary
Goal: Show current date and time on the homepage, ideally in each visitor’s timezone, and use a special font.
Context and references: The poster shared preview/live store links and an image. A helper asked for a demo showing date/time and reviewed an example.
Feasibility: One reply noted the example’s date/time is a custom setup; showing it per user’s location would require custom (hard-coded) implementation. The poster briefly considered not proceeding.
Implementation lead: Another reply suggested using Liquid’s date filter as a starting point: {{ “now” | date: “%Y-%m-%d %H:%M” }}, with references to Shopify’s Liquid date formatting docs. No concrete steps were provided for applying a special font.
Status: No finalized solution. The poster will explore the Liquid approach, and handling visitor-specific timezones remains unresolved.
Hello @olivervestlund
Would you like to show the time and date according to your time zone ? Can you share the demo site ?
Thanks
Hi, i want it to show the and date for in the timezone of the visitor. Here is a preview: https://r1ew0d5a2qrp2zuf-77159104851.shopifypreview.com
Thanks but can you share the demo site of showing time and date ?
Thanks
For the given site the date and time is a customer setup. So to setup for users location these needs to be hard coded.
Thanks
Ok, so i might just not do it haha ![]()
You can try using liquid date filter:
{{ “now” | date: “%Y-%m-%d %H:%M” }}
Here’s some references to look into and play with:
https://www.shopify.com/partners/blog/liquid-date-format
https://shopify.dev/docs/api/liquid/filters#date
I will look into it, thanks!
