Skip to content
DistrictMapperHelp
Browse topics

Embedding a Tool on Your Website

Copy a tool's embed code, paste it into your CMS, and have it live on your site in about a minute.

Most DistrictMapper tools can live right on your district website, so families use them without leaving your site. You copy a short snippet from DistrictMapper, paste it into a page in your website system, and it appears. No coding required — this article walks through it.

Get your embed code

  1. Sign in at app.districtmapper.com and click Publish & share in the left sidebar. (Each tool’s Preview & share button also opens this page on that tool’s section.)
  2. Click the tool you want to embed to expand it. Choose Copy webmaster instructions to hand the installation to a colleague, or Get embed code to install it yourself.
  3. Copy the embed code. Most tools offer two options — a Script snippet (recommended) and a simpler Iframe snippet — so click Copy script code or Copy iframe code, whichever fits your page.

Each tool generates its own snippet, so grab the one for the tool you’re placing.

Paste it into your website

Where this goes depends on your website system (your CMS), but the idea is the same everywhere: you’re adding the snippet to a page as HTML.

  1. Edit the page where you want the tool to appear.
  2. Add an embed, HTML, or custom code block — most website builders have one.
  3. Paste in the code you copied and save.
  4. Publish the page.

Tip: If you don’t see an HTML or embed block in your CMS, your website administrator or vendor can tell you where custom code goes. The snippet itself is the same regardless of who pastes it.

Sizing and responsiveness

Both snippet types span the full width of the space you put them in, so they reflow on phones and desktops. For most tools, the Script snippet (the recommended one) also resizes its height automatically to fit the tool’s content, so you don’t have to manage a fixed height yourself. SchoolMap is the exception: the map keeps a fixed height in both formats (see Adjust the height).

  • Place the embed in a normal content area, the same as you would text or an image.
  • Avoid forcing it into a tiny fixed box; give it room to display properly.

The one-minute go-live

  1. Copy the snippet from the Publish & share page.
  2. Paste it into an HTML block on your page.
  3. Publish, then open the live page and confirm the tool loads.

Note: When you update your data in DistrictMapper, the embed reflects it automatically — you don’t paste new code each time. The snippet stays put while the content behind it stays current.

Check the installed page

Open the district website in phone portrait, landscape, and desktop widths. Select two schools in SchoolCompare and use Previous school and Next school on a narrow screen. In a directory or form, reach the last item with touch and keyboard. If the CMS only accepts a fixed-height iframe, adjust its height in the website editor and place the tool’s public link directly below it. Check the published district page again after saving.

Last updated November 20, 2026