I’m having issues getting the following code to show up on my site. I’ve tried using the html iframe but the widget is not visible when I publish my site.
It does not seem that code actually connects the widget to some DOM element anywhere, is it working if you run it outside Wix?
Yes. That’s actually just the code from the SmartRecruiters widget. Here’s the code after I pasted it in the iframe.
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
$w.onReady( function () {
//TODO:
});
You will need to paste your code into an HtmlComponent (iFrame). For more information, see the article Working with the HTML Component in Wix Code .
I’ve pasted the code into an iframe several times but the code doesn’t show up. I do receive the error “parsing error: unexpected token”.
I see from your screenshot that you did not paste into an HtmlComponent (iFrame) - you pasted your code into the Page code. This is incorrect and will not work.
You need to paste your code into an HtmlComponent (iFrame), like this:
Refer to the documentation that I linked to in my previous post for more information: HtmlComponent (iFrame) API, and the article Working with the HTML Component in Wix Code .