Website builders
Add your reviews in the Wix Harmony Editor
In the Wix Harmony Editor you show your approved reviews with the “Embed code” element. Wix displays the code in a frame of its own, so you set the height of the element yourself, for desktop and for mobile.
TL;DR in 5 steps
- In Mocha, go to “Embed” > “Widget” and copy the code. It starts with `<div>`.
- In Wix Harmony, drag the “Embed code” element onto the page.
- Open the element's settings and paste the code into the “Enter HTML embed code” field.
- Drag the element tall enough on desktop and in the mobile view so nothing is cut off.
- Put the review form on a page of its own and publish the site.
Before you start
- A Mocha project with at least one approved review. Without approved reviews the widget stays empty.
- The embed code from your Mocha dashboard (see step 1).
- Access to the Wix Harmony Editor of your site.
The Wix Editor and Wix Studio have the same element with different routes to it. You'll find them on the Wix page.
Step by step
Copy the code in Mocha
In the Mocha dashboard, open your project and click Widget under Embed in the project navigation. Choose a widget under Choose a widget, adjust Appearance and Layout if you like, and click Copy code.
The code is a script tag inside a
<div>. Copy both, the first and the last line belong to it. Yours contains your project's identifier instead of “your-space”:HTML<div> <script src="https://mocha.de/api/embed/your-space/widget.js" data-mode="slider" async></script> </div>Add the “Embed code” element
In the Wix Harmony Editor, open the page where the reviews should appear. Click “+ Add”, then “Elements” and the “More Options” icon. Choose “Embed” and drag “Embed code” to the spot on the page.
Paste the code into the element
Click the element, then the “Settings” icon. Paste the Mocha code into the “Enter HTML embed code” field and apply it. In the settings Wix also asks which cookies and similar technologies the embedded code sets. The Mocha widget itself sets no cookies. If you're unsure which category to choose, check with your data protection adviser.
Set the height on desktop
Drag the element to the width of your content area. Then drag the bottom edge down until the widget is fully visible with no scroll bar. The Slider, Single Quote and Badge need much less height than a Wall of Love. A Wall of Love gets longer with every new review, so be generous.
Set the height in the mobile view
Switch to the mobile view at the top of the editor. The element is narrower there, so the widget is usually taller. Drag the element taller here as well until nothing is cut off. The height in the mobile view doesn't change the height on desktop, so check both.
Check the preview and publish
Open the preview and check the widget. Then publish the site and open it once on a computer and once on a phone.
Put the form on a page of its own
The review form is longer than a widget. In a frame of fixed height it needs a lot of room on a phone, and anything below the frame is pushed far down. So give it a page of its own:
- In Wix, create a new page, for example “Leave a review”.
- Add the “Embed a site” element there. In the Wix Harmony Editor you enter the address in the “Link” field.
- Enter the address of your form, for example
https://mocha.de/s/your-space. In Mocha, copy the address with Copy link in the project navigation. - Drag the element to the full width of the page and tall enough for the form to fit without a scroll bar. Check the mobile view here too.
- Link the page from the menu, from a button or via the QR code you create in Mocha under Embed.
If you'd rather open the form in a browser window of its own, link a button straight to the form address. Read more about the form itself under Customise the form.
If the widget doesn't appear
- Only the script tag pasted: Paste the code exactly as Mocha gives it with Copy code, with the
<div>around the script tag. - No approved review: The widget only shows approved reviews and stays empty otherwise. How to approve reviews is described under Approve reviews.
- Project paused: If “Project is active” is switched off in the project's Settings, Mocha shows no widget.
- Widget cut off: The element is too short. Drag it taller, on desktop and in the mobile view.
- Read the reason in the browser: If the widget still doesn't appear, the console in the browser's developer tools (F12) gives the reason in a line that starts with “[Mocha]”.