Getting started

10 steps to add Javascript on Wix.com

  1. Log in to your Wix account
  2. Select Edit Site
  3. Click Wix App market
  4. In the tool bar, select HTML and choose « HTML iFrame/Embed »
  5. Add it on to site
  6. A window pops up. From the Mode drop-down list, select the HTML code. Copy/paste the JavaScript Redirect code into the box labelled « HTML / embed code»
  7. Update
  8. In the checkbox, inspect the « Show on all pages »
  9. Save & Publish
  10. In the popup, switch off « Display in the mobile action Bar on my mobile site » and click on OK.

Was this helpful?

10 Comments
  • Arun Verma says:

    Thanks man,
    It worked for me and saved my lots of time.

    November 23, 2017 at 7:29 am
  • RVDS says:

    Right click on it to select Show on All Pages

    November 28, 2017 at 12:21 pm
  • Parm says:

    How we can add script in Header file of wix ?

    December 17, 2017 at 2:41 pm
    • dfrenay says:

      Actually, from our knowledge, you cannot insert a script inside the HEAD section of WIX as it is limited to their system. Hence the “workaround” explained here. Usually, no script should absolutely be loaded in the HEAD of the HTML, the only reason why script are sometimes asked to be included there is because it will be loaded faster than other script and content, which is useful for analytics or customer experience analysis (it is indeed best that those kind of processes start as early as possible).

      December 18, 2017 at 9:46 am
  • maias says:

    who can give me a java code to prevent visitors from copying contents from my website (mobile version) ???

    January 2, 2018 at 1:50 am
  • Tony says:

    Hi, I’d like to add a reCaptcha code to the “Contact Form” on my Wix website. I followed the steps above to try to paste the following snippet () but it doesn’t seem to work. Could someone please shed me some light on this? Many thanks!

    February 12, 2018 at 7:12 pm
  • Erik says:

    Step 6. This happends, yes: “A window pops up” Grey matter in fact :).

    But where do I select or find the “Mode drop-down list”

    Thank you in advance

    March 19, 2018 at 4:54 pm
  • Fasih says:

    I want to add a script that selects a folder and then selects all images in the folder and adds them to my wix market with their respective names and initial price to zero ?
    Can anyone help me here ?

    August 31, 2018 at 11:09 am
  • Hii … I wish to add “Disable Control C / V key script” in my wix web pages to prevent copying by visitors.

    Can you please help me in this regard.

    January 23, 2019 at 11:41 am

Leave A Comment

*
*