Linux 软件免费装
Banner图

Idara Business Hours

开发者 sajidansari65
更新时间 2026年8月27日 18:24
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg block local seo opening hours business hours fse

下载

1.0.0

详情介绍:

Idara Business Hours is a focused, single-purpose Gutenberg block that shows your weekly opening hours in a clean, accessible table — with a live "Open now / Closed" status pill that updates in the visitor's browser against your business timezone, so it never goes stale behind page caching. It also emits optional LocalBusiness schema.org markup (JSON-LD) so search engines can show your hours directly in results. Idara (إدارة) is the Arabic word for "administration" or "management". Idara Studio is a one-person studio building a growing family of carefully crafted, single-purpose Gutenberg blocks. Browse the full catalogue, live demos and per-block documentation at idara.studio. Why this and not a full block suite? Most block plugins ship 30+ blocks you'll never use, slowing your editor and your frontend. Idara plugins are deliberately small. This one loads its CSS and JavaScript only on pages where the block is present — never globally. Features Use cases

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install via Plugins → Add New → Upload Plugin
  2. Activate the plugin through the Plugins menu
  3. Open any post or page in the block editor
  4. Insert the Business Hours block where you want it displayed
  5. Set your weekly hours, then configure status, time format, and schema from the block settings sidebar

屏幕截图:

  • Frontend — weekly hours table with the live "Open now" status pill and today's row highlighted
  • Block settings sidebar — the weekly hours editor with a split-shift day expanded
  • Special / holiday hours editor — date-specific overrides
  • Business details panel — name, address, and phone used for LocalBusiness schema
  • Frontend — a "Closed · Opens Monday at 9:00 AM" status outside business hours

常见问题:

How does the "Open now" status stay accurate with page caching?

The status is computed in the visitor's browser using the WordPress Interactivity API, comparing the current time in your business timezone against your hours. Because it runs client-side after the page loads, it stays correct even when the HTML is served from a CDN or page cache.

Which timezone is used?

By default the block uses your WordPress site timezone (Settings → General). You can override it per block if a particular location is in a different timezone.

Can I set different hours for the morning and afternoon?

Yes. Each day supports multiple time ranges (split shifts) — add as many open→close ranges per day as you need.

Does it support holidays or one-off hours?

Yes. Add Special hours for specific dates to override the weekly schedule (for example, closed on a public holiday, or reduced hours on a particular day).

What is the LocalBusiness schema for?

It outputs structured data (JSON-LD) describing your business name, address, phone, and opening hours in a format search engines understand, which can improve how your hours appear in local search results. It's optional, and only the fields you fill in are included.

Will this slow down my site?

No. The block ships no jQuery and makes zero external requests. Its CSS and JavaScript are enqueued only on pages that actually contain the block — never site-wide.

Does this plugin track users or send data anywhere?

No. Everything runs locally on your site. No external requests, no analytics, no tracking.

更新日志:

1.0.0