Help centre

Answer

Why is my Wix custom code not working?

Short answer

Wix custom code commonly fails when it is tested in the editor, added through an HTML iframe, limited to the wrong page, or used before the site is published on a connected domain. Add it in Settings → Custom Code, choose All pages, load it once, place it at Body-end and test the live domain.

By InstantPWA engineering·Reviewed October 22, 2026

Use dashboard Custom Code

Wix has two different code paths. The Embed HTML element displays content in an iframe on one area of a page. Settings → Custom Code adds a script to the site itself.

Check scope and duplicates

Choose All pages for a site-wide popup and Load code once. Remove older copies so two scripts do not compete or create repeated popups.

Check the domain and consent

Use the published connected domain. If your cookie banner categorises the script, test after the matching consent is given and keep its category accurate.

Setup guides for your website

Related
Should I use an HTML embed or site-wide custom code?
Use site-wide custom code for an install popup, analytics or other scripts that need to run with the page. Use an HTML embed for a form, map or widget displayed in one spot. Many builders render HTML embeds inside iframes, which isolates them from the main page.
How do I check if a script is installed on my website?
Open the published website, not the editor, then view its source and search for the script address or ID. In developer tools, check Network for the script request and Console for errors. Use the exact domain visitors use; www, subdomains and custom domains can be different sites.
Can I add a service worker to a website builder?
Only if the builder lets you serve a JavaScript service worker from the same origin as your site. A script from another domain can add a popup, but it cannot register an outside worker to control your pages. Without that file, offline caching and full PWA behaviour need a different hosting setup.
Why is my Framer custom code not working?
Framer custom code may not run when your plan lacks Custom Code access, the code is on one page only, the project has not been published, or you are checking a different domain. Add it in Site Settings → General → Custom Code, choose the end of body, publish, and test the live address.
Why is my Shopify theme code not showing?
Shopify theme code is often missing because you edited an unpublished theme, placed it in a section that is not on every page, are testing checkout, or are looking at a cached page. For a site-wide popup, edit the live theme’s layout/theme.liquid and check the published storefront.
Is an install popup the same as a PWA?
No. An install popup is guidance that helps visitors add your website to their home screen. A full PWA uses a web app manifest and service worker so supported browsers can treat it as an installable app, with optional offline caching and push. A popup can be useful without promising every PWA feature.