Install Yaplet on a Framer site

Updated October 22, 2026

Framer has a Custom Code setting for adding scripts to your site, and Framer lists chat widgets as one of the things it is for. You copy one block of code from Yaplet, paste it into Framer, publish, and the chat button appears on your site.

Framer doesn't run custom code in the canvas preview. You see the chat only on your published site.

1. Copy your Yaplet code

In the Yaplet dashboard's left menu, go to Brand → (your brand) → Chat widget → Install. If the tab asks where your website runs, choose Other website. Copy the code with the copy button on the code block.

If the code you copied starts with !function (Yaplet, it has no <script> tags around it yet. Framer's custom code takes HTML, so you add the tags in step 3.

2. Open Custom Code in Framer

Open your Framer project and its settings, then select the Custom Code tab. Click Add Script, or the + icon if your site already has scripts.

3. Add the Yaplet script

  1. Give the script a name you will recognize later, for example Yaplet chat.
  2. In the code field, paste the Yaplet code. The code must start with a <script> line and end with a </script> line. If what you copied starts with !function (Yaplet instead, type <script> on a new line before it and </script> on a new line after it.
  3. For the placement, choose the end of the <body>. The Yaplet code loads the chat in the background, so it never slows your pages down.
  4. Leave it on all pages. Pick specific pages only if you want the chat on just those.
  5. For how often the code runs, choose Once.
  6. Save the script.

The code field should look like this:

<script>
!function (Yaplet, t, i) { … your Yaplet code … }();
</script>

4. Publish and check your site

Publish your site. Open the live site in a new browser tab and reload the page. The Yaplet chat button appears in the bottom-right corner. Click it to check that the chat opens.

For a full checklist, see Verify your installation.

If the chat doesn't appear

  • You are looking at the canvas preview. Framer runs custom code only on the published site. Publish, then open the live site.
  • The code shows up as text on your pages. The <script> tags are missing. Edit the Yaplet script in Custom Code, add them as in step 3, and publish again.
  • The chat shows on some pages only. The script is limited to specific pages. Edit it and set it to run on all pages.
  • Framer doesn't let you add a script. Ask Framer support whether your plan includes custom code.
  • You still see the old version of your site. Reload the page without the browser cache, or open it in a private window.

What's next

To see what the code does and where your widget ID is, read Install Yaplet.

Did this article answer your question?