Shows up instantly
The snippet carries a copy of the hours, so visitors see them right away. The live hours replace that copy a moment later if anything has changed.
Live demo · Website hours
Below is a sample location website. The hours card isn't typed into the page: it comes from the location's listing in PromoRepublic. Change the hours, add holiday hours or mark a temporary closure there, and every website using the snippet updates by itself.
Locations › Finland › Helsinki
Tammasaarenkatu 1, 00180 Helsinki, Finland
Our Helsinki office is in Ruoholahti, just west of the city centre. Drop by during opening hours, or book a time that suits you.
This block is ordinary page content written by the site owner. Only the hours card on the right is managed from PromoRepublic.
How it works
Each location's hours, holiday hours and closures are kept in PromoRepublic Listings, the same place that sends them to Google, Apple Maps, Bing, Facebook and directories.
In Location settings → Website hours, copy the code and paste it into the location page, in any website builder or CMS that accepts an HTML block.
When the hours change in Listings, every page with the snippet shows the new hours within about 20 minutes. Nobody logs in to the website.
What you get
The snippet carries a copy of the hours, so visitors see them right away. The live hours replace that copy a moment later if anything has changed.
Upcoming holiday and special hours appear on their own. A temporary closure shows a clear notice, the reopening date and the usual hours underneath.
Alongside the visible card, the page gets the hours as schema.org structured data, the format search engines use to understand a business's opening hours.
The card picks up the website's fonts and colours. A web designer can restyle it completely, or switch our styling off.
Labels follow the page language in 10 languages, and times follow the country: 19:00 in London, 7:00 PM in Chicago.
If the hours can't be reached for a while, the last copy stays on screen. Whatever the site had there before is the final fallback.
No cookies, no tracking, no visitor data. One small script, about 8.5 KB.
Regenerate the code in Location settings and the old snippet stops showing hours on whichever site it was pasted into.
Under the hood
Two lines. The key identifies the location; the long attribute is the built-in copy of the hours.
Structured data the snippet added to this page, built from the live hours only.
Waiting for the live hours…
Google takes those hours from the Business Profile, which PromoRepublic Listings already keeps up to date. The snippet makes the location's own website agree with it, so visitors and search engines see the same hours everywhere.
Anything placed inside the snippet's container (for example, the hours written as plain text) stays visible wherever the script doesn't run, including to tools that read pages without running scripts.
Yes. The same hours are available as JSON for each location key, and the snippet fires events so a developer can render the hours in their own markup.