# Embed a widget on Kajabi

Add your widget to a Kajabi website page, landing page or sales page with a Custom Code block, then check it on the live page.

Kajabi shows a ReTestimonial widget through its **Custom Code** block, which adds your own HTML and scripts to a page. You copy the widget's code once, paste it into a block on a website page or a landing page, and save.

> **Note:** Kajabi says all of its plans can add custom code to a site. You don't need Kajabi's code editor, which is on its Pro plan only.

1. **Copy your widget's embed code**

   In the widget builder, click **Get code**. Click **Publish and copy code**, or **Copy code** if the widget is already published. If you haven't made a widget yet, start with [Embed a widget on any website](/help/display/embed-a-widget-on-any-website).

   ![The Embed code dialog for a published widget, showing the snippet to copy](https://assets.retestimonial.com/app-statics/help/shots/widgets-embed-code-copy.170de072.webp)

2. **Open the page in Kajabi**

   From the Kajabi Dashboard, open **Website**, choose **Website Pages** or **Landing Pages**, and click the page's title to open it in the page editor. A sales page for a product or an offer is a Landing Page in Kajabi.

3. **Add a Custom Code block**

   In the sidebar, open the section where the widget belongs, click **Add block** and choose **Custom Code**. The block appears at the bottom of the section.

   To give the widget a section of its own, click **Add section** instead, choose **Custom code section** from the **Custom** category and click **Add**. The section appears at the bottom of the page, so drag it into place, then click its Custom Code block.

4. **Paste the code**

   Paste the code into the block's **Code** field without changing it, down to the closing `</script>` tag, and click **Save**. Kajabi's **Code** field needs scripts inside `<script>` tags, and the widget's code already has them.

5. **Check it on the live page**

   Kajabi's help doesn't say whether the page editor runs a Custom Code block's script, so check the page itself. Kajabi's **Preview** shows the page as you see it with Account Admin access, which it says can differ from what visitors see. Open the page's address in a private window, logged out of Kajabi.

   A **Draft** page shows visitors your 404 page, and a new landing page starts as a draft. To publish it, find it in the list of pages, click its status (**Draft**) to the right of its title and choose **Published**.

## Good to know

- **Not in the page's Settings.** The page editor's **Settings** tab has a **Custom Code** section too, as do checkout and upsell pages. It takes CSS and JavaScript without `<script>` tags, so the widget's code, which is HTML, doesn't go there.
- **Pages on the Premier template.** On a page built with Kajabi's older Premier template, click **Customize**, add a **Custom Content** section, click **Add Content** and choose **Custom Code**. Paste the code into its **Code** field and save.
- **Change the widget's design in ReTestimonial.** The widget draws itself in its own isolated area, so your Kajabi styles don't restyle it. Once it's published, your changes in the builder reach your page with the same code. The exception is switching to a floating style: **Get code** then gives you new code to replace the old.
- **Keep Script selected.** If **Get code** offers **Script** and **Iframe / Embed URL**, keep **Script**, the default. Some styles only work with it. See [Script or iframe](/help/display/embed-a-widget-on-any-website#script-or-iframe).
- **A Wall of Love works the same way.** Click **Embed code…** on its card, click **Copy** and follow these steps. The code is the same whichever platform you pick in that window. See [Embed a Wall of Love on your website](/help/display/embed-a-wall-of-love).
- **In a course lesson,** you can put your form instead, to ask students for a testimonial while they learn. See [Ask for testimonials inside your course](/help/collect/ask-for-testimonials-inside-your-course).

## If the widget doesn't show

- **The widget must be published** in ReTestimonial before your page shows it.
- **The page must be Published** in Kajabi. A draft shows visitors your 404 page.
- **The whole code must be in the block,** from the first line down to the closing `</script>` tag.
- **If the live page shows an old version** after you save, Kajabi says the cause is usually browser or server caching, not a failed save.

Kajabi's support doesn't cover custom code. For other causes, see [Widget not showing](/help/troubleshooting/widget-not-showing), and Kajabi's own [Add custom code to Pages](https://help.kajabi.com/en/articles/12695918-adding-custom-code-to-your-page) guide.

## Next steps

- [Embed a widget on any website](/help/display/embed-a-widget-on-any-website)
- [Send invites automatically from Kajabi](/help/collect/send-invites-from-kajabi)
- [Customize a widget](/help/display/customize-a-widget)
