Skip to content

Custom HTML

FieldFlow works on any website that lets you add HTML. If your platform isn’t WordPress, Webflow, or Squarespace, you can still embed a directory.

Copy your snippet from the project’s Publish tab (see Embed Code) and paste it where you want the directory to appear. It looks like this:

<div id="fieldflow-directory-1a2b3c4d" data-fieldflow-theme="light"></div>
<script>
window.FieldFlow = window.FieldFlow || { q: [] };
window.FieldFlow.q.push({
projectId: "YOUR_PROJECT_ID",
apiKey: "YOUR_API_KEY",
container: "#fieldflow-directory-1a2b3c4d",
theme: "light",
apiBaseUrl: "https://getfieldflow.io",
});
</script>
<script src="https://getfieldflow.io/embed.js" async></script>

Replace YOUR_API_KEY with a key from the Publish tab.

  • Paste the whole snippet in your page’s <body>, where the directory should appear
  • Keep the parts in the same order: the <div>, then the setup script, then the embed.js script
  • Keep the container id exactly as it is in the snippet. It starts with fieldflow-directory- (or fieldflow-quiz- for a quiz-only embed) and ends with part of your project ID
  • Give the container room. FieldFlow needs at least 300px of height

You can style the container element:

<div id="fieldflow-directory" style="max-width: 1200px; margin: 0 auto; min-height: 500px;"></div>

FieldFlow’s styles are scoped to the embed to avoid clashing with your page’s CSS.

You can put directories from different projects on the same page. Paste each snippet where you want it. Each one has its own container id, so they don’t interfere with each other.

With the default Match page language setting, the embed reads the lang attribute on your page’s <html> tag. For a Spanish page, use <html lang="es">. See Embed Code.

This works on any platform that lets you add custom HTML, for example:

  • Static HTML sites
  • Ghost
  • HubSpot
  • Wix (with an HTML embed element)
  • Any CMS with an HTML or code block