Guide 07

Placement

Placement decides where Moonshot Labs Lead Intake Forms appears on your site and how it looks. Use it to switch on the floating button, to get the code for a form you want on a page, and to set the colours and shape of the form and the button.

The Placement screen

Go to Lead Intake → Placement. The screen has three tabs: Floating button, On your pages and Look. Select a tab to open it. The tab you are on is kept in the address, so a link to a tab opens that tab.

The live preview is on the right. It draws the form or the chat as a visitor sees it, using the colours and shape you have chosen. It updates as you change things, before you save.

Changes on all three tabs are saved together with one button, Save placement, at the foot of the screen.

Floating button

The floating button is a small button in a corner of every page. A visitor taps it to open the chat. What the chat says and offers is set on the Chat screen. The link at the top of this tab takes you there.

The Floating button tab with the Show a floating button on the site switch, the position and content choices, and the Hide on these pages picker
The Floating button tab.
OptionWhat it doesDefault
Show a floating button on the siteTurns the button on or off. While it is off, nothing appears on the site. Changes take effect on the site after you save.Off
Position: Bottom rightPuts the button in the bottom right corner of each page.Selected
Position: Bottom leftPuts the button in the bottom left corner of each page.—
Content: Icon onlyShows just the chat icon.Selected
Content: Icon and labelShows the icon with the words Chat with us.—
Add a page (Hide on these pages)Choose a page from the list to hide the button on it. The page appears as a chip. Leave the list empty to show the button everywhere.Empty
Show the button on [page] againSelect a chip to remove that page from the hidden list, so the button shows there again.—

On your pages

This tab lists every form you have built, with where it appears and the shortcode to paste into a page. Copy a shortcode and paste it into any page, post or Elementor text widget. To build or change the forms themselves, see the Form builder guide.

The On your pages tab with a table listing a form, its key, where it is placed, and its shortcode with Inline, Chat and Pop-up buttons and a Copy button
The forms table. Each row shows a form, where it is used, and its shortcode.
Column or controlWhat it doesDefault
FormThe form’s title, and its key underneath. The key is the part used in the shortcode.—
Where it isA badge for Floating chat if the form is used by the chat, and a link to each page that holds the form. Not placed appears when neither applies.—
InlineShows the shortcode for the form in place: [moonshot_lead_intake form="contact"].Selected for each row
ChatShows the shortcode that presents the form as a chat: [moonshot_lead_intake form="contact" mode="chat"].—
Pop-upShows the shortcode that presents a button which opens the form over the page: [moonshot_lead_intake form="contact" mode="modal"].—
CopyCopies the shortcode shown in that row to the clipboard. It reads Copied for a moment. Copying does not save anything.—
A forms table row with the Pop-up button selected and the shortcode showing mode equals modal
Choosing Pop-up changes the shortcode in that row only. Nothing is saved from this tab.

If the list is empty, the tab says You have no forms yet. Create a form first on the Forms screen.

Look

The Look tab sets how the form and the floating button are drawn. Visitors see changes after you save.

Colour

The Colour section with eight accent swatches and a Custom swatch, and the Text on accent choice set to Auto with a sample button
The Colour section, with the default accent selected.
OptionWhat it doesDefault
Accent: NavySets the accent to #1f4e79.Selected
Accent: Forest, Brick, Plum, Bronze, Charcoal, Teal, BerrySets the accent to #1d5c4a, #7a3e2c, #6a3d8f, #8a6326, #2f3640, #0f6b78 and #a3324f. There are eight presets in all. The caption under the swatches shows the name of the one chosen.—
Accent: CustomOpens a six-digit hex box (for example #1f4e79) and a colour picker. Typing a valid code applies it at once. An invalid code is marked in the box and the screen says Use six digits, like #1f4e79.Not selected
Text on accent: AutoPicks black or white, whichever reads better on the accent. It follows the accent when you change the accent.Selected
Text on accent: CustomLets you type the text colour yourself, in a six-digit hex box with a colour picker. The accent no longer changes it.Not selected
The Colour section with a light yellow accent, white text chosen as Custom, and a warning that the button text may be hard to read at 1.3 to 1
A warning appears when the text and accent are too close in brightness. This example is white on pale yellow, at 1.3:1.

Below Text on accent the screen shows the contrast ratio when it is below 4.5:1. Aim for at least 4.5:1 so the button text is easy to read. The warning does not stop you saving.

Style

The Style section with cards for Background, Field style, Button style, Spacing and Font, a Corner roundness slider and a Reset to defaults link
The Style section. Each card shows a small sample of its choice.
OptionWhat it doesDefault
Background: LightA light form and button panel.Selected
Background: DarkA dark form and button panel.—
Field style: OutlinedInput boxes with a border.Selected
Field style: FilledInput boxes with a filled background and no border.—
Button style: SolidButtons filled with the accent colour.Selected
Button style: OutlineButtons with a border in the accent colour and no fill.—
Button style: PillButtons with fully rounded ends.—
Spacing: ComfortableMore space between fields and around the form.Selected
Spacing: CompactLess space, so more of the form fits on screen.—
Font: Theme fontUses the font of your theme on the site. The preview uses the admin font, so it may look a little different. A note under the preview says so.Selected
Font: System fontUses a standard system font stack instead of the theme’s font.—
Corner roundnessA slider from 0 px (square corners) to 24 px (very round). It shows the value beside it.12 px
Reset to defaultsPuts every value on this tab back to its default. It does not save. Select Save placement to keep the change.—

Preview

The preview has a Form and a Chat switch. Form shows an enquiry form with a sample entry. Chat shows the chat with its greeting and buttons. Both show the floating button below them.

The preview with the Form switch selected, showing a sample contact form and the floating button
The preview in Form mode.
The preview with the Chat switch selected, showing the chat greeting, reply buttons and a question box
The preview in Chat mode.

Under the preview, a caption says whether the floating button is on. When it is off, the button in the preview is faded and does not appear on the site.

Saving

The save bar at the foot of the screen, showing Unsaved changes and the Save placement button
The save bar, showing Unsaved changes.

The bar at the foot of the screen stays in view. It shows one of these messages:

  • Unsaved changes: something on any tab has changed and is not saved yet.
  • Placement saved.: the last save worked and nothing has changed since.
  • An error message in red, with the reason. Nothing is saved when this shows.

Select Save placement to save every tab at once. The button reads Saving… while it works.

Shortcode reference

A shortcode is a line in square brackets that puts a form into a page. The Forms list and the table on On your pages give you the exact line for each form.

AttributeWhat it doesDefault
formThe key of the form to show. Required in practice. Use lower-case letters, numbers and hyphens, 3 to 100 characters. The key is shown on the Forms screen and in the table.core-enquiry
modeembed shows the form in place (Inline). chat shows it as a chat. modal shows a button that opens the form in a pop-up (Pop-up). Any other value shows the form in place.embed
titleThe heading above the form. Leave it empty for the default heading.Contact our team, or Ask [site name] for a chat
trigger_labelThe words on the button that opens the pop-up. Used with mode="modal".Chat with us
classExtra CSS class names added to the form’s wrapper, for styling by your theme.Empty
fallback_urlThe path of a page to link to when the form cannot be shown, such as /contact/. When it is empty, the contact page set on Settings is used.Empty
auto_openSet to 1 with mode="modal" to open the pop-up as soon as the page loads.0
chatSet to 1 to add the chat panel to a form shown in place.0

Examples:

  • Inline: [moonshot_lead_intake form="contact"]
  • Chat: [moonshot_lead_intake form="contact" mode="chat"]
  • Pop-up: [moonshot_lead_intake form="contact" mode="modal"]

The older shortcode [moonshot_lead_intake] still works and takes the same attributes. Use [moonshot_lead_intake] for new pages.

If the form is missing or not published, visitors see a Get a quote link to your contact page, when you have set one under Lead Intake → Settings. Otherwise they see nothing in its place.

Common tasks

To show the floating button

  1. Go to Lead Intake → Placement and open Floating button.
  2. Turn on Show a floating button on the site.
  3. Choose a position and content, and any pages to hide it on.
  4. Select Save placement.

To put a form on a page

  1. Open On your pages and find the form.
  2. Choose Inline, Chat or Pop-up.
  3. Select Copy, then paste the shortcode into the page, post or Elementor text widget.

To change the colour

  1. Open Look, then Colour.
  2. Select a swatch, or select Custom and type a six-digit code.
  3. Check the contrast message, and the preview.
  4. Select Save placement.