# Contact, map and embed blocks

> Contact, map and embed blocks in the editor: Contact channel, Visit, Social links, Event details, Map, Embed and Custom HTML.

Source: https://docs.personacart.com/editor/blocks/contact-and-embeds

In short: {"Contact, map and embed blocks in the editor: Contact channel, Visit, Social links, Event details, Map, Embed and Custom HTML."}

These blocks tell visitors where you are, how to reach you, and bring in content from other services: a call or WhatsApp button, a map with opening hours, your social links, an event's date with an Add to calendar button, a booking calendar or a video.

1. Open a page in the editor, hover inside a section and press **Add**.
2. Choose **Component** and pick the block.
3. Click it on the canvas and change its settings in the inspector on the right.

## Where to find it

Open a page in the editor (Sidebar → STOREFRONT → Pages), then:

Press **Add**, choose **Component**, then search by name or look in the **Forms and contact** shelf. For whole contact sections use the **FAQ & Contact** chip in the **Section** picker. See [Add a section or a block](/editor/add-section-and-templates). Forms are on [Form blocks](/editor/blocks/forms).

## Contact channel

One contact channel from one field. A phone number gives **Call**, **Text** and **WhatsApp** buttons under it; an email gives **Write**; an address gives **Get directions**. Type the value once and every button uses it.

| Setting | What it does |
| --- | --- |
| **Channel** | **Phone**, **Email** or **Visit**. |
| **Source** (**Where it comes from**) | **From my store** uses your store's own phone, email or address (change it in Business settings); **Custom** lets you type a value. A value you typed is kept for later if you switch back. |
| **Buttons** | **Text button**, **Texts go to a different number**, **WhatsApp button** (the number needs a country code starting with +), **Buttons look**: **Outline** or **Solid**. |

## Visit

- One place with a map panel, address, an open-now badge, opening hours and **Get directions** (opens Apple Maps, a geo link or Google Maps).
- The map is a drawn schematic; the live map loads only after a tap, with a consent line and credit.
- It is the better choice than the older Map block for new pages.

| Setting | What it does |
| --- | --- |
| **Place name**, **Address**, **Phone number shown on the card** | The words on the card. **Find this address on the map** looks up the position ("Map position set from your address."). |
| **Map position**, **Latitude**, **Longitude**, **Map zoom (3 to 19)** | Where the map points. **Set the position by hand** overrides the lookup. |
| **Map and details** / **Compact card** | The two layouts. |
| **Opening hours** | Per day: **Day**, **Opens (24 hour)**, **Closes (24 hour)**; **Show the hours**, **Show the open-now badge**, **Time zone**. **Use my store's opening hours** copies the hours set in Business settings. |
| **Source** | **From my store** or **Custom** for the address and position. |

## Social links

- Your social accounts as tiles or an icon row.
- **Where the links come from**: **From my store** (the list in Business settings, the same one the footer uses) or **Custom** (a list typed on this block: **Network**, **Address or @name**, **Name shown**, **Icon**).
- **Copy from my store** starts a custom list from your store's list.
- **Open in a new tab** is a switch.
- Networks with no address are hidden, and nothing shows when the store has no usable link.

## Event details

The when and where of one event: a date block, weekday and time range, place, and a real **Add to calendar** button built from the same fields (a `.ics` file).

| Setting | What it does |
| --- | --- |
| **Event name**, **Show the name on the card** | The title. |
| **Starts**, **Ends** | Date and time. **Use this device's time zone** shows it in the visitor's time zone. |
| **Place** (**Where the place comes from**) | Your store's address or a custom place. |
| **Add to calendar button**, **Button words** | Show the button and rename it. |
| **Name text style**, **Date and time text style** | Typography for each part. |

## Map

- A Google Maps embed: **Place** (**From my store** or **Custom**), **Address**, **Exact position** (**Latitude**, **Longitude**), **Zoom**, **Height**, **Label**, **Show an "Open in Google Maps" link**, and **Load the map**: **When it comes into view** or **When someone clicks**.
- Before it loads, the page shows "Show map" and "Nothing is sent to Google until you click." With no address you see "Add an address to show the map".
- Visit is the better choice for new pages; Map keeps working on existing ones.

## Embed

- Brings in a booking calendar, form, video, map or audio player.
- Paste a link or the service's embed code in **Link or embed code**.
- The services that work are YouTube, Vimeo, Google Maps, Calendly, Cal.com, Typeform, Spotify, SoundCloud and Loom; anything else is refused ("We can only embed these services").
- Settings: **Shape** (**Wide**, **Square**, **Tall**), **Title for screen readers**, and **Load the content**: **When it comes into view** or **When someone clicks** ("Nothing is sent until you click.").
- **Turn into Video** converts a video link into a Video block.
- Use a **Button** with a link when the service is not on the list.

## Custom HTML

- Your own pasted HTML, CSS and JavaScript in a sealed box.
- It is not shown to every store; it appears only where the HTML editor is switched on.
- Settings: **Your HTML code**, **Height** (**Auto**, **Small**, **Medium**, **Large**), **Name for screen readers**, **Scripts** (**Run** or **Don't run**) and **Use my theme colours and fonts** (your page's text color and font are used where your code does not set its own).
- A counter shows the size used against the limit (in KB); **Move pictures to my media library** shrinks the code when it is too long, and **Import as sections** turns pasted HTML into normal editable sections.
- The code is shown in a sealed box, and scripts from other sites load only over https.
- **Don't run** turns all scripts off, which suits a plain styled block but stops widgets that need scripts.

## Steps: add a call button and a map

  Press Add, Component, and pick Contact channel. Choose Phone. Leave Source on From my store to use your store's number.
  Turn on Text button and WhatsApp button if you take texts.
  Add a Visit below it. Press Find this address on the map, then set the Opening hours (or Use my store's opening hours).
  Check the phone view: the buttons stack and the map stays inside the screen.

## What happens, and what doesn't

- Contact details come from your store settings unless you pick **Custom**, so changing your phone number once updates every block that follows your store.
- Maps and embeds do not send anything to the other service until the visitor scrolls to them or taps them, depending on **Load the map / content**.
- An embed from a service that is not on the list is refused, not shown half-working.

## Questions
