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.
Basic setup
Section titled “Basic setup”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.
Placement
Section titled “Placement”- 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 theembed.jsscript - Keep the container
idexactly as it is in the snippet. It starts withfieldflow-directory-(orfieldflow-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
Styling the container
Section titled “Styling the container”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.
More than one embed on a page
Section titled “More than one embed on a page”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.
Page language
Section titled “Page language”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.
Platforms this works with
Section titled “Platforms this works with”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