How to Add a World Clock to WordPress (2026 Guide)

๐Ÿ“… June 13, 2026 ยท โฑ 8 min read ยท ๐Ÿท WordPress, Tutorial

Learn how to add a beautiful, real-time world clock to your WordPress site in under 5 minutes. No coding required. Free plugin with 682 cities, dark/light themes, and automatic timezone detection.

Why Add a World Clock to Your WordPress Site?

If your business works with clients, customers, or team members across different time zones, a world clock is one of the most useful widgets you can add to your site. Here's why:

The best part? It takes less than 5 minutes to set up, and it's completely free.


3 Ways to Add a World Clock (Compared)

There are three main approaches. Here's a quick comparison:

Method Difficulty Best For Customizable
WordPress Plugin โญ Easy Most users โœ“ Yes
Shortcode โญโญ Medium Developers โœ“ Yes
Embed Code โญ Easy Any CMS/site โœ“ Yes

We'll cover all three methods below. Start with whichever one fits your setup.


Method 1: The Easy Way (Free WordPress Plugin)

This is the fastest and most flexible method. Our free WordPress plugin gives you a world clock with 682 cities, dark/light themes, three sizes, and a native Gutenberg block.

Step 1: Download the Plugin

Download the ZIP file from our WordPress plugin page. The file is only 9KB.

Step 2: Install in WordPress

  1. Log in to your WordPress admin dashboard
  2. Go to Plugins โ†’ Add New
  3. Click Upload Plugin at the top
  4. Select the ZIP file and click Install Now
  5. Click Activate Plugin

Step 3: Add the Clock

You have three options:

Option A: Shortcode (any page or post)

[world_time_clock timezone="America/New_York"]

Option B: Widget (sidebar or footer)

  1. Go to Appearance โ†’ Widgets
  2. Click + to add a new block
  3. Search for "World Time Clock"
  4. Configure timezone, theme, and size in the block settings

Option C: Gutenberg Block (block editor)

  1. Edit any post or page
  2. Click + to add a new block
  3. Search for "World Time Clock"
  4. Use the sidebar panel to configure your clock
Live Preview

Download the Free Plugin

682 cities. Dark & light themes. No API key. No signup.

โ†’ Get the Plugin

Method 2: Shortcode (For Developers)

If you prefer to add the clock directly in your theme template or want more control, use the shortcode. This works even without the plugin if you add the following code to your theme's functions.php:

// Add World Time Clock shortcode
function wts_world_clock_shortcode($atts) {
    $atts = shortcode_atts(array(
        'timezone' => 'America/New_York',
        'theme' => 'dark',
        'size' => 'medium',
        'show_date' => 'true',
    ), $atts, 'world_time_clock');
    
    $sizes = array(
        'small' => array('width' => 220, 'height' => 120),
        'medium' => array('width' => 300, 'height' => 160),
        'large' => array('width' => 420, 'height' => 220),
    );
    
    $dims = isset($sizes[$atts['size']]) ? $sizes[$atts['size']] : $sizes['medium'];
    $params = http_build_query(array(
        'tz' => $atts['timezone'],
        'theme' => $atts['theme'],
        'size' => $atts['size'],
        'date' => $atts['show_date'] === 'false' ? '0' : '1',
    ));
    
    $url = 'https://worldtimessync.com/widget-embed.html?' . $params;
    
    return '<iframe src="' . esc_url($url) . '" ' .
           'width="' . $dims['width'] . '" ' .
           'height="' . $dims['height'] . '" ' .
           'frameborder="0" scrolling="no" ' .
           'style="border:none;border-radius:12px;overflow:hidden;" ' .
           'title="World Time Clock" loading="lazy"></iframe>';
}
add_shortcode('world_time_clock', 'wts_world_clock_shortcode');

Then use it anywhere:

// In a post or page
[world_time_clock timezone="Europe/London" theme="light" size="large"]

// In a PHP template
<?php echo do_shortcode('[world_time_clock timezone="Asia/Tokyo"]'); ?>

Method 3: Embed Code (Any Website)

Not on WordPress? No problem. You can embed the world clock on any website -- Wix, Squarespace, Shopify, Webflow, or plain HTML. Just paste this code:

<!-- World Time Sync Widget -->
<div id="wts-widget"></div>
<script src="https://worldtimessync.com/widget.js" 
        data-timezone="America/New_York" 
        data-theme="dark" 
        data-size="medium">
</script>

That's it. The script automatically creates the clock widget and inserts it into your page.

Available Options


Customizing Your Clock

Choosing a Timezone

The clock supports any of 682 cities worldwide. Here are some popular choices:

City Timezone Value UTC Offset
New YorkAmerica/New_YorkUTC-5 / UTC-4 (DST)
Los AngelesAmerica/Los_AngelesUTC-8 / UTC-7 (DST)
LondonEurope/LondonUTC+0 / UTC+1 (DST)
ParisEurope/ParisUTC+1 / UTC+2 (DST)
DubaiAsia/DubaiUTC+4
MumbaiAsia/KolkataUTC+5:30
SingaporeAsia/SingaporeUTC+8
ShanghaiAsia/ShanghaiUTC+8
TokyoAsia/TokyoUTC+9
SydneyAustralia/SydneyUTC+10 / UTC+11 (DST)

Choosing a Theme

Dark theme works best on dark backgrounds and looks modern and sleek. Light theme is better for light-colored sites and offers higher contrast.

Choosing a Size


Frequently Asked Questions

Is the WordPress plugin really free?

Yes. No premium tier, no API key, no signup, no hidden costs. It's free forever.

How many cities are supported?

682 cities across all time zones worldwide. From New York to Tokyo to Sydney and everywhere in between.

Does it automatically handle Daylight Saving Time?

Yes. The clock uses the browser's built-in timezone database, so DST transitions are handled automatically.

Will it slow down my site?

No. The clock loads in a lightweight iframe (under 5KB) and uses lazy loading. It won't affect your PageSpeed score.

Can I show multiple clocks at once?

Yes. Just add multiple shortcodes or widgets with different timezones. For example, show New York, London, and Tokyo side by side.

Does it work with page builders like Elementor?

Yes. Use the shortcode [world_time_clock] in any Elementor text widget, or use the Gutenberg block in the WordPress block editor.

Can I customize the colors?

The plugin offers dark and light themes out of the box. For custom colors, use the embed code method with inline styles on the iframe wrapper.


Ready to Add a World Clock?

Download the free WordPress plugin and have it running in under 5 minutes.

โ†’ Download Free Plugin

๐Ÿ“– Related Articles