Interactive · Gutenberg

Analog Clock block for WordPress

A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.

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

A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.

Inspector panels on this block: Content, Clock Settings. Those titles come from index.js, not from a shared template.

Behavior controls: “Clock Style” options: Classic, Minimal, Bold; “Timezone” options: Local (device), UTC, New York (ET), Chicago (CT), Los Angeles (PT).

Where to find it

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

How to use Analog 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 “Analog Clock”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Content. Set “Clock Size (px)”, “Clock Style”, “Timezone”, “Show Numbers”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Clock Size (px)Numeric range control in the inspector. Range 100–500. block.json default: 240. Saved as `clockSize`.
Clock StyleSelect control; the chosen value is saved on the block. Options: Classic; Minimal; Bold. block.json default: classic. Saved as `clockStyle`.
TimezoneSelect control; the chosen value is saved on the block. Options: Local (device); UTC; New York (ET); Chicago (CT); Los Angeles (PT); London (GMT/BST); Paris (CET); Berlin (CET); Moscow (MSK); Dubai (GST). block.json default: local. Saved as `timezone`.
Show NumbersOn/off toggle in the inspector. On by default. Saved as `showNumbers`.
Show Tick MarksOn/off toggle in the inspector. On by default. Saved as `showTicks`.
Show Second HandOn/off toggle in the inspector. On by default. Saved as `showSecondHand`.
Show Date BelowOn/off toggle in the inspector. Off by default. Saved as `showDate`.
Show Digital TimeOn/off toggle in the inspector. Off by default. Saved as `showDigitalTime`.
Clock FaceColor control in the inspector. block.json default: #ffffff. Saved as `clockFace`.
Clock BorderColor control in the inspector. block.json default: #1e1b4b. Saved as `clockBorder`.
Hour HandColor control in the inspector. block.json default: #1e1b4b. Saved as `hourHandColor`.
Minute HandColor control in the inspector. block.json default: #374151. Saved as `minuteHandColor`.
Second HandColor control in the inspector. block.json default: #ef4444. Saved as `secondHandColor`.
Tick MarksColor control in the inspector. block.json default: #374151. Saved as `tickColor`.
NumbersColor control in the inspector. block.json default: #1e1b4b. Saved as `numberColor`.
Center DotColor control in the inspector. block.json default: #ef4444. Saved as `centerDotColor`.
Section BackgroundColor control in the inspector. Saved as `sectionBg`.
Title ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`.

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 Analog Clock block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Analog Clock”. It sits under Interactive. After insert, open Content and set “Clock Size (px)”, “Clock Style”, “Timezone”, “Show Numbers”.

What makes Analog Clock different from other Blockenberg blocks?

A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels. Inspector labels on this block include “Clock Size (px)”, “Clock Style”, “Timezone”, “Show Numbers”.

Is the Analog Clock Gutenberg block free?

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

Can I style Analog 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: Content, Clock Settings).

Related interactive blocks

Get Blockenberg

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

Get Blockenberg