Interactive · Gutenberg

World Clock block for WordPress

Display live clocks for multiple timezones with analog or digital style. Perfect for global audiences, remote teams, and travel blogs.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Display live clocks for multiple timezones with analog or digital style. Perfect for global audiences, remote teams, and travel blogs.

Inspector panels on this block: Header, Timezone Zones, Clock Settings, Layout & Sizing. Those titles come from index.js, not from a shared template.

Behavior controls: “IANA Timezone” (e.g. America/New_York, Europe/London); “Clock Style” options: Digital, Analog; “Time Format” options: 12-hour (AM/PM), 24-hour.

Where to find it

Gutenberg inserter → Interactive → search “World Clock” (block name `blockenberg/world-clock` in block.json). Style it in the sidebar after insert.

How to use World Clock block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “World Clock”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Header. Set “Show Title”, “Header — Title”, “Show Subtitle”, “Subtitle”.
  4. Check the published page. The view script reads HTML data attributes: data-label, data-opts, data-tz. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Header — TitleText field in the inspector. block.json default: World Clocks. Saved as `title`.
Show SubtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
SubtitleText field in the inspector. block.json default: Current time across different time zones. Saved as `subtitle`.
LabelText field in the inspector.
IANA TimezoneText field in the inspector. e.g. America/New_York, Europe/London.
Clock StyleSelect control; the chosen value is saved on the block. Options: Digital; Analog. block.json default: digital. Saved as `clockStyle`.
Time FormatSelect control; the chosen value is saved on the block. Options: 12-hour (AM/PM); 24-hour. block.json default: 12h. Saved as `timeFormat`.
Show DateOn/off toggle in the inspector. On by default. Saved as `showDate`.
Show SecondsOn/off toggle in the inspector. On by default. Saved as `showSeconds`.
AccentColor control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`.
Card BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Card BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`.
Time ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `timeColor`.
City LabelColor control in the inspector. block.json default: #6b7280. Saved as `labelColor`.
Date ColorColor control in the inspector. block.json default: #9ca3af. Saved as `dateColor`.
Clock FaceColor control in the inspector. block.json default: #f5f3ff. Saved as `clockFace`.
Hour HandColor control in the inspector. block.json default: #1e1b4b. Saved as `handHour`.
Minute HandColor control in the inspector. block.json default: #6c3fb5. Saved as `handMin`.
Second HandColor control in the inspector. block.json default: #ef4444. Saved as `handSec`.
Title ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`.
Subtitle ColorColor control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`.
Section BackgroundColor control in the inspector. Saved as `sectionBg`.
ColumnsNumeric range control in the inspector. Range 1–6. block.json default: 4. Saved as `columns`.
Gap (px)Numeric range control in the inspector. Range 4–48. block.json default: 16. Saved as `gap`.
Card Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `cardRadius`.
Card Padding (px)Numeric range control in the inspector. Range 8–64. block.json default: 24. Saved as `cardPadding`.
Time Size (px)Numeric range control in the inspector. Range 16–64. block.json default: 32. Saved as `timeSize`.
Analog Clock Size (px)Numeric range control in the inspector. Range 60–240. block.json default: 120. Saved as `analogSize`.
Max Width (px)Numeric range control in the inspector. Range 400–1400. block.json default: 960. Saved as `maxWidth`.
Padding Top (px)Numeric range control in the inspector. Range 0–160. block.json default: 60. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–160. block.json default: 60. Saved as `paddingBottom`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the World Clock block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “World Clock”. It sits under Interactive. After insert, open Header and set “Show Title”, “Header — Title”, “Show Subtitle”, “Subtitle”.

What makes World Clock different from other Blockenberg blocks?

Display live clocks for multiple timezones with analog or digital style. Perfect for global audiences, remote teams, and travel blogs. Inspector labels on this block include “Show Title”, “Header — Title”, “Show Subtitle”, “Subtitle”.

Is the World Clock Gutenberg block free?

Yes. World Clock ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style World Clock to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Header, Timezone Zones, Clock Settings, Layout & Sizing).

Related interactive blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert World Clock from the Gutenberg inserter.

Get Blockenberg