Hometown Globe

Description

Most “contact us” sections are a colored box with a button. Hometown Globe turns that section into the most memorable part of the page, and ties it back to where your business is based.

Add the block, paste your coordinates, and a dotted globe turns to face your city. Your location glows with a pulsing beacon while bright arcs travel from it to places around the world. Next to the globe sits a ready-made call to action: a heading, a short line of text, labels for your services, a button and your phone number. You edit all of it like any other text in the block editor.

Made for

  • Local businesses that want to say “we’re real, and we’re right here”: contractors, law firms, clinics, agencies, restaurants.
  • Companies with a home base that serve customers everywhere.
  • Schools, nonprofits and tour operators that want to show where they’re based.

Features

  • Any location: paste coordinates straight from Google Maps, or type latitude and longitude.
  • The preview in the editor moves too, so you see your city as soon as you paste it.
  • Four color schemes: Midnight, Ocean, Forest and Graphite.
  • Globe on the left or the right of the text.
  • Two small cards on the globe for your city and a fact such as “Since 2005”. Leave the second line of the first card empty to show your coordinates.
  • All the text is regular blocks (paragraph, heading, list, buttons), so it uses your theme’s fonts and you can add, remove or reorder anything.
  • Works on phones: the globe moves above the text on small screens.
  • Respectful of visitors: the animation pauses when the section is scrolled out of view, and visitors who ask their device to reduce motion see a still globe.
  • Lightweight: drawn with the browser’s built-in canvas. No WebGL, no jQuery, no third-party libraries, no external requests, no tracking.

Privacy

Hometown Globe doesn’t collect, store or send any data. It doesn’t set cookies or contact any outside service. The map data ships with the plugin.

Credits

Land shapes from Natural Earth 1:50m land (https://www.naturalearthdata.com/), which is in the public domain. land-dots.json holds the dots the globe draws: the land polygons were drawn onto a 2880 x 1440 map, 46,000 evenly spread points on the sphere were tested against it, and the points on land were kept (Antarctica skipped). Each dot is stored as latitude x 10 and longitude x 10.

Screenshots

Blocks

This plugin provides 1 block.

  • Hometown Globe A call-to-action section with an animated dotted globe that turns to your city. Edit the heading, text, labels, button and phone like normal blocks.

Installation

  1. In your WordPress admin, go to Plugins > Add New Plugin, search for “Hometown Globe” and click Install Now, then Activate.
  2. Open a page in the block editor, click the + button and add the “Hometown Globe” block.
  3. In the block’s sidebar, under Location, paste your coordinates. To get them, right-click your location in Google Maps and click the numbers at the top of the menu to copy them.
  4. Type over the heading, text, labels, button and phone number, and set the button link.
  5. Publish.

FAQ

How do I find my coordinates?

Open Google Maps, right-click your business or city and click the two numbers at the top of the menu (for example 39.7392, -104.9903). They’re copied. Paste them into the “Paste coordinates” box in the block sidebar.

Does it slow down my site?

The globe is drawn with the browser’s built-in canvas and pauses whenever the section isn’t on screen. The plugin loads one small script, one stylesheet and one map data file (about 100 KB, smaller when your server compresses it), only on pages that use the block.

Can I change the colors?

Pick one of the four color schemes in the sidebar under Look. The text uses your theme’s fonts.

Can I remove the arcs or the cards?

Yes. Turn off “Animated arcs” under Look, or “Show the cards” under Small cards on the globe.

Why does the section look narrow?

The block is set to full width. If your theme doesn’t support full-width blocks, it shows at the width of your content area instead.

Does it work with page builders or classic themes?

It’s a block for the block editor. It works with block themes and with classic themes that use the block editor.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Hometown Globe” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Hometown Globe” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • First release.