WP Widgets

Popular widgets for code blocks

WP Widgets

Use Case

Provides [analog~clock], [digital~clock], [current~date] and [fullscreen~button] shortcodes. Embed a WP Widget shortcode into a block editor or text element. Works on any page or post.

Shortcodes

[fullscreen~button]

  • Use [fullscreen~button] to display a button that activates full screen mode on the browser. The button disappears after full screen is activated.

[analog~clock]

  • Use [analog~clock] to display an analog clock.

[digital~clock]

  • Use [digital~clock] to display a digital clock.

[current~date]

  • Use [current~date] to display the current date using a specified format. (It will default to the 'long' format)

Examples

[fullscreen~button] shortcode

[fullscreen_button]

[digital~clock] shortcode

[analog~clock] shortcode

[current~date] shortcode

[digital_clock format="12″ seconds="true" period="false"]

[analog_clock]

[current-date format="medium"]

[digital~clock] Parameter Examples

[digital~clock] [digital_clock]
[digital~clock format="12"] [digital_clock format="12"]
[digital~clock format="12" seconds="false" period="false"] [digital_clock format="12" seconds="false" period="false"]
[digital~clock seconds="false"] [digital_clock seconds="false"]

[current~date] Parameter Examples

[current~date format="small"] [current-date format="small"]
[current~date format="short"] [current-date format="short"]
[current~date format="medium"] [current-date format="medium"]
[current~date format="long"] [current-date format="long"]
[current~date format="small-us"] [current-date format="small-us"]
[current~date format="short-us"] [current-date format="short-us"]
[current~date format="medium-us"] [current-date format="medium-us"]
[current~date format="long-us"] [current-date format="long-us"]

Download WP Widgets