Free. No sign-up.

Free open now hours widget for your website

Customers want one thing from your hours: are you open right now? Fill in your week, copy the code and paste it into your site. The box works it out, lunch break and closing dates included, in Philippine time whatever the visitor's own clock says.

Your week

Times are Philippine time. Untick a day you are closed.

Days you will be closed optional

Holidays and other one-off days. The box names the reason on the day.

How it looks

Preview

See the code
<!-- Open-now hours widget from Solus Five, free to use: solusfive.dev/widgets/open-now-hours/ -->
<style>
.sf-hours:not(#_){
--sf-bg:#ffffff;
--sf-ink:#14201c;
--sf-muted:#55635d;
--sf-line:#dde3e0;
--sf-accent:#0f766e;
--sf-on-accent:#ffffff;
--sf-accent-text:#0f766e;
--sf-font:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
.sf-hours:not(#_),.sf-hours:not(#_) *,.sf-hours:not(#_) *::before,.sf-hours:not(#_) *::after{all:revert;box-sizing:border-box}
.sf-hours:not(#_) [hidden]{display:none!important}
.sf-hours:not(#_){all:initial;display:block;max-width:460px;margin:0 0 16px;padding:18px 20px;background:var(--sf-bg);color:var(--sf-ink);border:1px solid var(--sf-line);border-top:3px solid var(--sf-accent);border-radius:12px;font:400 15px/1.5 var(--sf-font);text-align:left}
.sf-hours:not(#_) h2{margin:0 0 8px;font:700 17px/1.3 var(--sf-font);color:var(--sf-ink)}
.sf-hours:not(#_) [data-status]{display:flex;gap:9px;align-items:baseline;margin:0 0 12px;font-weight:600;font-size:16px}
.sf-hours:not(#_) [data-status]::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:#d97706}
.sf-hours:not(#_) [data-status][data-state=open]::before{background:#16a34a}
.sf-hours:not(#_) ol,.sf-hours:not(#_) ul{list-style:none;margin:0;padding:0}
.sf-hours:not(#_) ol li{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-top:1px solid var(--sf-line);font-size:14px;color:var(--sf-muted)}
.sf-hours:not(#_) ol li[data-today]{color:var(--sf-accent-text);font-weight:700}
.sf-hours:not(#_) [data-day-hours]{text-align:right}
.sf-hours:not(#_) ul{margin-top:10px;padding-top:10px;border-top:1px solid var(--sf-line);font-size:13px;color:var(--sf-muted)}
.sf-hours:not(#_) ul li{display:flex;flex-wrap:wrap;gap:0 12px;padding:2px 0}
.sf-hours:not(#_) time{font-weight:600;color:var(--sf-ink)}
.sf-hours:not(#_) .sf-note{margin:10px 0 0;font-size:12px;color:var(--sf-muted)}
.sf-hours:not(#_) .sf-credit{margin:6px 0 0;font-size:11px;color:var(--sf-muted)}
.sf-hours:not(#_) .sf-credit a{color:inherit!important;text-decoration:underline}
</style>
<section class="sf-hours" data-sf-hours data-utc-offset="+08:00">
<h2>Opening hours</h2>
<p data-status role="status" hidden></p>
<ol>
<li data-day="1" data-open="08:00" data-close="17:00" data-break="12:00-13:00"><span data-day-name>Monday</span><span data-day-hours>8:00am to 12:00nn, 1:00pm to 5:00pm</span></li>
<li data-day="2" data-open="08:00" data-close="17:00" data-break="12:00-13:00"><span data-day-name>Tuesday</span><span data-day-hours>8:00am to 12:00nn, 1:00pm to 5:00pm</span></li>
<li data-day="3" data-open="08:00" data-close="17:00" data-break="12:00-13:00"><span data-day-name>Wednesday</span><span data-day-hours>8:00am to 12:00nn, 1:00pm to 5:00pm</span></li>
<li data-day="4" data-open="08:00" data-close="17:00" data-break="12:00-13:00"><span data-day-name>Thursday</span><span data-day-hours>8:00am to 12:00nn, 1:00pm to 5:00pm</span></li>
<li data-day="5" data-open="08:00" data-close="17:00" data-break="12:00-13:00"><span data-day-name>Friday</span><span data-day-hours>8:00am to 12:00nn, 1:00pm to 5:00pm</span></li>
<li data-day="6" data-open="08:00" data-close="12:00"><span data-day-name>Saturday</span><span data-day-hours>8:00am to 12:00nn</span></li>
<li data-day="0" data-closed><span data-day-name>Sunday</span><span data-day-hours>Closed</span></li>
</ol>
<p class="sf-note">Philippine time.</p>
<p class="sf-credit"><a href="https://solusfive.dev/widgets/open-now-hours/">Free widget from Solus Five</a></p>
</section>
<script>
(() => {
document.querySelectorAll('[data-sf-hours]:not([data-sf-ready])').forEach((box) => {
box.setAttribute('data-sf-ready', '');
const status = box.querySelector('[data-status]');
const rows = [...box.querySelectorAll('[data-day]')];
const byDay = new Map(rows.map((r) => [+r.dataset.day, r]));
const closures = new Map();
box.querySelectorAll('[data-date]').forEach((li) => {
closures.set(li.dataset.date, li.querySelector('[data-reason]').textContent.trim());
});
const mins = (v) => { const [h, m] = v.split(':'); return h * 60 + +m; };
const clock = (v) => {
if (v === 0) return '12:00mn';
if (v === 720) return '12:00nn';
const h = Math.floor(v / 60);
return `${h % 12 || 12}:${String(v % 60).padStart(2, '0')}${h < 12 ? 'am' : 'pm'}`;
};
const spans = (r) => {
if (r.dataset.closed !== undefined) return [];
const open = mins(r.dataset.open), close = mins(r.dataset.close);
if (!r.dataset.break) return [[open, close]];
const [a, b] = r.dataset.break.split('-').map(mins);
return [[open, a], [b, close]];
};
const off = box.dataset.utcOffset || '+08:00';
const [oh, om] = off.slice(1).split(':').map(Number);
const shift = (off[0] === '-' ? -1 : 1) * (oh * 60 + (om || 0)) * 60000;
const dateOf = (d) => d.toISOString().slice(0, 10);
const describe = (now) => {
const at = now.getUTCHours() * 60 + now.getUTCMinutes();
const shut = closures.get(dateOf(now));
if (shut === undefined) {
const today = byDay.get(now.getUTCDay());
const cur = today && spans(today).find(([a, b]) => at >= a && at < b);
if (cur) {
const later = spans(today).find(([a]) => a > at);
return {
open: true,
text: later ? `Open now until ${clock(cur[1])}, then again at ${clock(later[0])}.` : `Open now until ${clock(cur[1])}.`,
};
}
}
const lead = shut ? `Closed today for ${shut}.` : 'Closed now.';
for (let ahead = 0; ahead < 8; ahead++) {
const d = new Date(now.getTime() + ahead * 86400000);
if (closures.has(dateOf(d))) continue;
const r = byDay.get(d.getUTCDay());
if (!r) continue;
const next = spans(r).find(([a]) => ahead > 0 || a > at);
if (next) {
return {
open: false,
text: ahead ? `${lead} Opens ${r.querySelector('[data-day-name]').textContent.trim()} at ${clock(next[0])}.` : `${lead} Opens at ${clock(next[0])}.`,
};
}
}
return { open: false, text: lead };
};
const render = () => {
const now = new Date(Date.now() + shift);
const today = byDay.get(now.getUTCDay());
rows.forEach((r) => { if (r !== today) delete r.dataset.today; });
if (today) today.dataset.today = '';
const s = describe(now);
if (status.textContent !== s.text) status.textContent = s.text;
status.dataset.state = s.open ? 'open' : 'closed';
status.hidden = false;
};
render();
setInterval(render, 60000);
});
})();
</script>

Where to paste it

Press Copy code above, then follow the steps for your site. Paste the whole code in one go, and paste it again the same way if you change your details here. Steps checked October 2026.

Google SitesFree. The widget runs in its own frame, so it cannot clash with your site.
  1. On a computer, open your site in Google Sites.
  2. Click Insert, then Embed, then Embed code.
  3. Paste the code, click Next, then Insert.
  4. Drag the edges of the frame until the whole widget shows: about 480 pixels.

Google Sites's own help page, if a button has moved.

WixThe widget runs in its own frame, so it cannot clash with your site.
  1. In the Wix Editor, click Add Elements, then Embed Code, then Popular Embeds, then Embed HTML.
  2. Click the new box on your page, then Enter Code.
  3. Paste the code under Add your code here, then click Apply.
  4. Drag the box until the whole widget shows: about 480 pixels.
  5. Switch to the mobile view and size the box there too. It does not resize by itself.

Wix's own help page, if a button has moved.

WordPressSelf-hosted sites, and WordPress.com plans that allow plugins.
  1. Edit the page or post, and add a Custom HTML block where you want the widget.
  2. Paste the code into the block.
  3. Preview the page, then publish.

On WordPress.com, scripts only run on a plan that allows plugins, with hosting features activated (its help page). On any other plan the script is removed. Your hours still show, but the open-or-closed line does not.

WordPress's own help page, if a button has moved.

SquarespaceCore, Plus and Advanced plans.
  1. Edit the page, hover where you want the widget, and click Add block or +, then Code.
  2. Click the pencil icon on the block and paste the code.
  3. Save, then check the page in a private window. Squarespace can hide code from you while you are logged in, even though visitors see it.

Scripts in a Code block need a Core, Plus or Advanced plan. On any other plan: Your hours still show, but the open-or-closed line does not.

Squarespace's own help page, if a button has moved.

ShopifyDepends on your theme. Many include a Custom Liquid section.
  1. In your Shopify admin, go to Online Store, find your theme and click Edit theme.
  2. Click Add section and choose Custom Liquid.
  3. Paste the code into its box, then save.

If your theme has no Custom Liquid section, its documentation will say where custom code can go.

Shopify's own help page, if a button has moved.

A Solus Five templateOr any site you edit as plain files.
  1. Open the page in a plain text editor.
  2. Paste the code where you want the widget, somewhere inside the main section.
  3. Save, then open the page in your browser to check.

Facebook Pages, Shopee and Lazada do not accept code at all. On Facebook, set your hours in your Page's settings instead.

Make it match your website

The form covers the basics. For your exact colours and font, describe your site here and copy a ready-made request for ChatGPT, Claude or Gemini. It sends your widget's code and asks for the look to change and nothing else.

Worth reading

Starting a whole site?

Our templates are complete sites you can make your own the same way: Lantern, veterinary and Kiosk, food. See them all.

No website yet? A free AI prompt has ChatGPT, Claude or Gemini make you a one-page site.

Free to use on any site, yours or a client's. Please do not resell it or offer it as part of your own collection of widgets. The small "Free widget from Solus Five" line at the bottom is there so other people can find us, and deleting it is fine.