Enderby Websites

Articles · Running your website

How to add a map and directions to your small business website

Published · Updated

A customer decides to visit your shop. They open your website to find the address. They see a street number and nothing else. Now they need to copy the address, open a maps app, and paste it in.

A map on your contact page saves them that work. It also answers the questions a map cannot: where to park, which door to use, and what the building looks like. This guide covers both parts.

Step 1: Decide if your business needs a map

Add a map if customers visit you in person. Shops, studios, clinics, cafes, and offices all qualify.

Skip the map if you work from home and do not want visitors at your door. Skip it if you travel to your customers. Name your service area in plain text instead. A line such as “We serve Enderby and nearby communities” does the job.

If you meet clients by appointment only, add the map and say so. A short line like “Visits by appointment. Call or send a message first” prevents unexpected arrivals.

Step 2: Type your address as text

Write your full address as plain text on the page. Do this before you add any map. The map is a bonus. The text is what search engines and screen readers read.

Use the same address format everywhere. Match it to your Google Business Profile letter for letter. If one place says “Street” and another says “St.”, the mismatch can confuse customers and listings.

Step 3: Get the embed code from Google Maps

Google Maps gives you a snippet of code that places a live map on your page.

  1. Open Google Maps on a computer.
  2. Search for your business name or address.
  3. Click your listing.
  4. Click Share.
  5. Click the Embed a map tab.
  6. Choose a size, then click Copy HTML.

If your business does not show up in the search, the listing is missing or unclaimed. Set that up first.

Now open the page you want to edit. Most website builders have an HTML block, a custom code block, or an embed block. Add one, paste the code, and save. The map should appear on the page.

Step 4: Make the map fit a phone screen

The code from Google often sets a fixed width, such as 600 pixels. A phone screen is narrower than that. The map then spills off the edge or forces visitors to scroll sideways.

Find width="600" in the code and change it to width="100%". Set the height to something between 300 and 450. That height shows enough of the street without pushing your content down the page.

Check the result on a real phone. Our guide to checking that your website works on a phone lists what to look for.

Step 5: Add a title and lazy loading

Two small edits improve the embed. Both go inside the code you pasted.

Add a title so screen readers can describe the map. The code already contains the word iframe. Add title="Map showing the location of your business name" next to it, with your real business name. Our accessibility checklist covers more fixes like this.

Add loading="lazy" too. This tells the browser to load the map only when a visitor scrolls near it. Maps are heavy. A map near the bottom of the page should not slow down the top.

Many people want to open directions in their own maps app. A link makes that one tap.

In Google Maps, click Share again. This time stay on the Send a link tab and click Copy link. Put that link on a button or a line of text near the map. Use words that say what happens, such as “Get directions to our shop.”

On most phones, the link opens the maps app the visitor already uses.

Step 7: Write directions in words

A map shows the street. It does not show what a visitor sees when they arrive. Add two to four short sentences that fill the gaps.

Cover the details that cause missed turns:

  • Where to park, and whether parking is free
  • Which door to use
  • What the building or sign looks like
  • Whether there are stairs or a step at the entrance
  • Which floor or unit you are in

An example: “Park in the lot behind the building. Our entrance is the green door next to the bakery. The door has one step. Call us if you cannot find it.”

Use your own details. Do not copy that example. Mention step-free access only if it is true.

Step 8: Test the pin

Open your page on your phone. Tap the map. Check that the pin sits on your building and not on the next block. Tap the directions link and confirm it opens the right place.

If the pin is wrong, the cause is your Google Business Profile. Fix the location there and the embedded map follows. Embeds do not hold a separate address.

Test one more thing. Ask someone who has never visited to find you using only your website. Watch where they hesitate. Add a line of written directions for each hesitation.

Where to put the map

Your contact page is the first choice. Put the address, hours, and phone number above the map, and the map below them. Some owners repeat the address and a directions link in the footer. That works well too. A full map in the footer of every page adds weight and gains little.

If you want help adding a map or fixing one that does not work, send a note through our contact page.

Ready when you are

Get in touch