Dark mode for Wix

Wix adds custom code from your site's dashboard, to all pages at once.

Before you start

  • Your site must be published and connected to a domain.

Add DarkYes to your Wix site

  1. Create a free DarkYes account and add your site's address. In your dashboard, press Get the code next to the site, then Copy code.

    Your line looks like this, with your own key in place of YOUR-KEY:

    <script src="https://darkyes.com/d.js" data-key="YOUR-KEY" async></script>
  2. In your site's dashboard, go to Settings.

  3. Under Development & integrations, open Custom Code.

  4. Press + Add Custom Code at the top right.

  5. Paste your line and give it a name, for example DarkYes.

  6. Under Add Code to Pages, choose All pages.

  7. Under Place Code in, choose Head.

  8. Press Apply.

Check that it works

  1. Open your site in a private window.

  2. Look for the switch in the bottom-right corner, and press it.

  3. In your dashboard, the site changes from “Waiting for the first visit” to “Active”.

Remove it

In Settings, then Custom Code, remove the DarkYes code.

Your site then looks exactly as it did before.

These steps were checked against the Wix Help Center on 14 November 2026.

Try it on your own site.

Create a free account, add your site and paste one line. When your first site goes live, you get 14 days of Pro for free.

Start freeNo card needed.