Linux 软件免费装
Banner图

ITBoffins Live Opening Hours Banner & Table

开发者 itboffins
更新时间 2026年10月21日 04:42
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

opening hours business hours live status store hours open closed

下载

1.1.16 1.1.12 1.1.15 1.2.0

详情介绍:

ITBoffins Live Opening Hours Banner & Table helps small businesses show dynamic opening hours on a page, plus a friendly We're open / Sorry, we're closed notice bar. The opening-hours table and live banner both work from the same schedule you save in WordPress. They update in the visitor's browser, so customers see the right opening status even when your site is cached for speed. Why you'll like it

安装:

  1. Upload the itboffins-live-opening-hours folder to /wp-content/plugins/, or install through the Plugins screen.
  2. Activate the plugin.
  3. Go to Live Opening Hours in the admin menu, set your weekly hours, and save.
  4. Optionally add the Live Opening Hours block or the [iboh_opening_hours] shortcode to a page.

屏幕截图:

  • The open/closed notice bar on the front end.
  • The dynamic opening-hours table from the block or shortcode.

升级注意事项:

1.2.0 Adds a timezone setting with a live clock and daylight-saving warning, and a clearer settings screen with an Open / Closed switch for every day and date. Existing hours are preserved. 1.1.16 Adds WordPress 7.1 editor compatibility and hardens special-date validation on modern PHP. 1.1.15 Improves save feedback and fixes accessibility details found during live desktop and mobile verification. 1.1.14 Corrects boundary, overnight, special-date, formatting, accessibility, and editor integration issues found during a full code review. 1.1.13 Past special dates are cleaned out automatically, keeping the one-off changes list current. 1.1.12 WordPress.org review fixes: proper style enqueueing and prefixed shortcode/class names. The shortcode is now [iboh_opening_hours]. 1.1.11 Submission copy now makes the linked live banner and opening-hours table clearer. Upcoming notices are easier to scan, and bank-holiday notice visibility is now separate from manual special dates. 1.1.10 The notice bar now avoids page-load text flicker by showing a brief loading state before the live status appears. 1.1.9 Bank-holiday notices are quieter and same-date bank holidays now take priority over manual special dates. 1.1.8 Front-end opening-hours text now follows the site's own typography. 1.1.7 Adds a helper to insert standard UK bank holidays as closed special dates. 1.1.6 Adds simple controls for sticky notices and top-banner spacing. 1.1.5 Renames the plugin for WordPress.org submission, adds friendlier small-business wording, hardens custom wording output, and refreshes release metadata. 1.1.4 Admin header logo now uses the packaged PNG asset. 1.1.3 Mixed upcoming closed dates and special-hours dates are shown in chronological order. 1.1.2 Upcoming closed dates without labels are now included in grouped banner text. 1.1.1 Special dates are saved more defensively and the admin script is cache-busted. 1.1.0 Show upcoming special dates ahead of time, and optionally run in special-dates-only mode with no weekly hours. Existing settings are preserved. 1.0.0 First release.

常见问题:

What makes it live?

The page table and notice bar use your saved schedule in the visitor's browser. That lets the open/closed message and today's row stay current without you editing the page.

Does it still work if my site is cached or uses WP Rocket?

Yes. The open/closed banner, today's row, and upcoming-date notices are worked out in the visitor's browser, so they stay correct on a cached page. When you edit the hours, the plugin asks common caching plugins to refresh so the new schedule reaches visitors.

Which timezone is used?

By default, your site's WordPress timezone (Settings -> General). The Timezone card on the Live Opening Hours screen can instead pin the schedule to a city of its own. The "Right now it is..." line under the customer preview shows the time the plugin is working from, so you can check it at a glance. Always choose a city (such as Europe/London or America/Anchorage) rather than a "UTC-9"-style offset: a fixed offset never changes for daylight saving, so the plugin would run an hour out for part of the year.

The open/closed clock is an hour out. How do I fix it?

Your timezone is almost certainly set to a fixed UTC offset. For example, Alaska is UTC-9 in winter but UTC-8 in summer, so a site set to "UTC-9" runs an hour behind from March to November. Open Live Opening Hours, look at the "Right now it is..." line under the preview, and in the Timezone card choose the nearest city (America/Anchorage for Alaska). The plugin warns you whenever a fixed offset is in use.

Why did my change not appear on the site straight away?

The live open/closed status always updates in the visitor's browser. The schedule itself, though, is part of the page, so if you use a page-caching plugin the new hours appear once that cache is refreshed. Saving asks WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, LiteSpeed Cache, SiteGround Optimizer, Autoptimize, Cache Enabler, Breeze, Hummingbird, and Nginx Helper to clear automatically; other caches, including host-level caches, may need clearing by hand.

Does it use my WordPress time format?

Yes. Displayed hours support the wall-clock tokens G, H, g, h, i, s, a, and A, plus backslash-escaped literals. Other PHP date-format characters remain literal because a saved opening time is not a complete timestamp from which timezone- or instant-dependent tokens can be calculated reliably.

Can I quickly add bank holidays?

Yes. In Live Opening Hours, use the bank-holiday helper inside Holidays & one-off dates. Choose England & Wales, Scotland, or Northern Ireland, pick the year, and add the standard dates as closed dates. One-off public holidays can still be added manually.

How do I set different hours for one day, or mark a day closed?

In Your regular week, every day has an Open / Closed switch. Choose Open and the day gets a time you can edit (add another for a lunch break); choose Closed and the day shows "Closed all day". For a single date, add it under Holidays & one-off dates and pick "Closed all day" or "Open with different hours".

Can I set a lunch break or split hours?

Yes. Add more than one time range to a day, for example 09:00-12:00 and 13:00-17:00.

Can I open past midnight?

Yes. Set a closing time earlier than the opening time, for example 22:00-02:00.

How do I show hours on a page?

Use the Live Opening Hours block in the editor, or paste one of these shortcodes into a page: [iboh_opening_hours show="table"], [iboh_opening_hours show="status"], or [iboh_opening_hours show="both"].

Does it send any data anywhere?

No. There is no external API and no tracking. Everything runs on your own site. To keep cached pages current, the saved hours, dates, labels, and public notes are included in the page data and evaluated in each visitor's browser. Do not put confidential information in a schedule note.

更新日志:

1.2.0 1.1.16 1.1.15 1.1.14 1.1.13 1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0