---
title: "Adding Custom Code and Widgets in Wix"
description: "Follow theseFollow these steps to add custom code and widgets to your Wix website. steps to add custom code and widgets to your Wix website."
url: https://docs.yogobooking.com/en/adding-custom-code-and-widgets-in-wix
language: en
last_updated: 2026-11-22
---

# Adding Custom Code and Widgets in Wix

---

### 1. Log in to Wix

### 2. Navigate to Custom Code

- Click **Select site** → **Settings** → **Custom code**

### 3. Add the Code

- Click **Add Custom Code**

- Paste the **head code (you get that by contacting YOGO)**

- In the name field, write **YOGO Wix**

- Under _Add Code to Pages_, choose **Load on each new page** (**important**)

- Click **Apply**

## Optional: Add Custom Styling

- If styling is needed, repeat the steps above

- Add CSS inside `<style> ... </style>` tags

- Name it **YOGO Style**

---

### 4. Edit the Site

- Click **Home** → **Edit site**

### 5. Choose the Page

- At _Page_, select the page where the widget should appear

### 6. Add a Text Element

- Click **+** → **Text** → **Paragraphs**

### 7. Insert the Widget Code

- Drag the text element to full width

- Enter the `<div>` code for the widget you want to display (see the [Widget Setup Guide](https://docs.yogobooking.com/en/yogo-guide-to-setting-up-widgets-on-your-website))

### 8. Save & Publish

- Click **Save** and **Publish**

- **Note:** In Wix, widgets don’t show in edit mode. Preview them on the live site.

---

### 9. Add a Login Button

- Go to **Page** → **Manage pages**

- Click **+ Add Menu Item** → **Link**

- Add the login link ([found in this article](https://docs.yogobooking.com/en/yogo-guide-to-setting-up-widgets-on-your-website))

---

✅ **Great success! You are ready 🥳**
