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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “World Clock”, insert it. Category: Interactive.
- Configure inspector controls that exist on this block. Open Header. Set “Show Title”, “Header — Title”, “Show Subtitle”, “Subtitle”.
- 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
| Control | What the code does |
|---|---|
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Header — Title | Text field in the inspector. block.json default: World Clocks. Saved as `title`. |
| Show Subtitle | On/off toggle in the inspector. On by default. Saved as `showSubtitle`. |
| Subtitle | Text field in the inspector. block.json default: Current time across different time zones. Saved as `subtitle`. |
| Label | Text field in the inspector. |
| IANA Timezone | Text field in the inspector. e.g. America/New_York, Europe/London. |
| Clock Style | Select control; the chosen value is saved on the block. Options: Digital; Analog. block.json default: digital. Saved as `clockStyle`. |
| Time Format | Select control; the chosen value is saved on the block. Options: 12-hour (AM/PM); 24-hour. block.json default: 12h. Saved as `timeFormat`. |
| Show Date | On/off toggle in the inspector. On by default. Saved as `showDate`. |
| Show Seconds | On/off toggle in the inspector. On by default. Saved as `showSeconds`. |
| Accent | Color control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`. |
| Card Background | Color control in the inspector. block.json default: #ffffff. Saved as `cardBg`. |
| Card Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Time Color | Color control in the inspector. block.json default: #1e1b4b. Saved as `timeColor`. |
| City Label | Color control in the inspector. block.json default: #6b7280. Saved as `labelColor`. |
| Date Color | Color control in the inspector. block.json default: #9ca3af. Saved as `dateColor`. |
| Clock Face | Color control in the inspector. block.json default: #f5f3ff. Saved as `clockFace`. |
| Hour Hand | Color control in the inspector. block.json default: #1e1b4b. Saved as `handHour`. |
| Minute Hand | Color control in the inspector. block.json default: #6c3fb5. Saved as `handMin`. |
| Second Hand | Color control in the inspector. block.json default: #ef4444. Saved as `handSec`. |
| Title Color | Color control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`. |
| Subtitle Color | Color control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`. |
| Section Background | Color control in the inspector. Saved as `sectionBg`. |
| Columns | Numeric 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
- The view script reads HTML data attributes: data-label, data-opts, data-tz.
When this is the right block
- Display live clocks for multiple timezones with analog or digital style. Perfect for global audiences, remote teams, and travel blogs — that is the job of World Clock, not a generic content block.
- Use it when you need the editor control labeled “Show Title”, which exists on this block’s inspector.
- It matches pages about clock, timezone, world.
- Inserter grouping: quizzes, games, and click-to-reveal experiences.
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
Analog Clock
A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.
Stopwatch
Interactive stopwatch with start/pause/reset controls and lap recording. Fully styled with customizable colors, display format, and rich Inspector settings.
Weather Widget
Live weather display with current conditions, temperature, humidity, wind speed and a 5-day forecast. Powered by OpenWeatherMap free API.
2048 Game
The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.
Bingo Card
Interactive 5×5 Bingo card with number calling, win detection, and celebration animations.
Content Score
Visual content or SEO scoring card with circular gauge, color-coded criteria rows, and overall grade.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert World Clock from the Gutenberg inserter.