TL;DR: Wix Settings → Custom Code → + Add Custom Code → Paste script in Header → All Pages → Apply → Publish. The consent banner loads automatically across your entire Wix site.

Overview

Wix allows custom code through its built-in Custom Code feature available on Business and eCommerce plans. You'll paste the Consently script in the header section to load the consent banner on all pages.

Before You Begin

Make sure you have:

Time required: About 3 minutes

How to Install on Wix

Step 1: Get your embed script

Copy your Consently embed script by following the instructions in Direct HTML Installation.

BlockNote image

Step 2: Access Wix site settings

Log in to your Wix account, open the site where you want to add Consently, then click Settings in the left sidebar. 

BlockNote image

Step 3: Navigate to Custom Code

On the Settings page, scroll down to Advanced, then click Custom Code

BlockNote image

Step 4: Add new custom code

Click + Add Custom Code in the top right corner.

The embed code should look like this:

  <!-- Start Consently Banner -->
<script src="https://app.consently.net/consently.js" data-bannerid="YOUR_BANNER_ID"></script>
<!-- End Consently Banner -->
</head>
BlockNote image

Step 5: Configure the code snippet

In the Add Custom Code panel:

  1. Paste your Consently embed script in the Paste the code snippet here field

  2. Name your code: Enter Consently Banner Code.

  3. Add Code to Pages: Select All pages

  4. Place Code in: Select Head

  5. Load code once: Leave unchecked

💡 Tip: Placing code in the Head ensures the banner loads before page content, which is essential for proper cookie blocking.
BlockNote image

Step 6: Apply and publish

  • Click Apply to save the custom code

Settings  Wix.com 2026-01-18 at 4.03.04 PM.png
  • Make sure the custom code is showing under Head, and it's enabled

Settings  Wix.com 2026-01-18 at 4.16.22 PM.png
  • Then go back to the website editor and click Publish in the top-right corner to publish your changes.

Wix Website Editor  My Site 1 2026-01-18 at 4.10.53 PM.png
  • Finally, check the live version of your website. The Consently banner should be visible.

Home  My Site 1 2026-01-19 at 10.47.46 AM.png

Done!

Your cookie consent banner is now active on your Wix site.

Success indicator: Visit your published site in a new incognito window to see the consent banner appear immediately.

What's Next

Now that you've installed the script:

Troubleshooting

The banner doesn't appear after publishing

Why this happens: Wix aggressively caches content, and changes can take a few minutes to propagate.

Solution:

  1. Wait 2-3 minutes after publishing

  2. Clear your browser cache completely

  3. Try viewing your site in an incognito/private browsing window

  4. Check that the script appears in your page source (right-click → View Page Source and search for "consently")


I don't see the Custom Code option

Why this happens: Custom Code is only available on Wix Business and eCommerce plans.

Solution: Upgrade your Wix plan to Business or eCommerce. Free, Connect Domain, and Combo plans don't support custom code. You can upgrade in your Wix dashboard under SettingsBilling & Payments.


The banner appears multiple times on the same page

Why this happens: The Consently code was added in multiple locations or saved multiple times.

Solution:

  1. Go to SettingsCustom Code in Wix

  2. Look for duplicate "Consently" entries

  3. Delete all but one entry

  4. Click Apply, then Publish your site


The code appears as text on my page

Why this happens: The code was pasted into a Wix text element rather than the Custom Code section.

Solution: Remove the code from any text elements on your page, then follow the installation steps above to add it properly via SettingsCustom Code.

Related Pages