I am trying to get reftagger to work in my church’s website. The html script that is available from
https://faithlife.com/products/reftagger does not work.
The script is as follows:
Any insight on how to get this to work would be greatly appreciated.
You can’t use HTML directly in a Wix page.
WixCode understands all of Javascript, except for anything that accesses the DOM. This keeps the user from inadvertently “breaking” something.
I myself tried to hack things from the code, from an iFrame, and in my dreams, but WixCode wasn’t having any of it.
Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.
One small exception is the $w.HtmlComponent (which is based on an iFrame). This element was designed to contain vanilla HTML and it works just fine. You might be able to use the HtmlComponent for your script.