adding javascript from bible gateway.com

I am adding javascript from biblegateway.com as described here . The javascript will chage bible verse references on a page to hyperlinks that open a pop-over window containing the text of that verse.

The snippet being added is:

I’ve added this code to my site using Tracking Tools & Analytics in the Body-End section. I have “Add code to All Pages” selected. And I’ve tried both options:

  • load code once, and

  • load code on each new page
    It WORKS on the first page I open on my site, OR, if I refresh the page I am looking at. However, if I navigate to another page of my site via the menu then on that second page, it’s as if this code hasn’t run. The bible scripture references are not hyperlinks. BUT, if I refresh the page, they are converted to hyperlinks as intended.

For example: visit aorhope.org/get-help-now
You will note that the reference to Matthew 5:23-24 is a hyperlink that opens a pop-over from Biblegateway. Now navigate to any other page via the menu. Then use the back button to go back to the get-help-now page. Those hyperlinks that worked a moment ago are gone. BUT, if you refresh the page then the links work again.

This smells like something related to the two options above (load once/load each page) but I get the same behavior with both options. It’s like the “load with each new page” isn’t having affect?

Any ideas how to make this work reliably?

Hi! Just wondering if you found a solution for that case. I m trying to use the same code now and it works on one site but doesn’t work at another

Please add a new post rather than bumping up an old thread from 2018.
You can simply refer back to this post with a link.

If you use the search function too, you would find many previous posts on using iFrames or custom tool in Tracking and Analytics section.

As for the issue itself, please note that you are using third party code which Wix will not provide support for as it has not had the chance to test it fully works on their servers etc.

Therefore, if you are having issues with code from a third party, you are best suited going back to their own support for more help integrating it with Wix.

You can read about adding html code to your Wix website through either using a html iFrame on your page or adding it as a custom tool in Tracking and Analytics here.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
https://support.wix.com/en/article/embedding-custom-code-to-your-site

As stated on both of those linked pages above.
**Wix cannot provide support for external codes that were not created or tested with Wix. If you are experiencing an issue with your code snippet, please contact the provider directly. **

I would also suggest that you check the sites own html code used for this too, as the provided snippet of code looks different to the one being used.
https://www.biblegateway.com/usage/
https://www.biblegateway.com/usage/votd/custom_votd/
https://www.biblegateway.com/share/

There are others out there too that will do the same thing…
https://faithlife.com/products/reftagger
http://wiki.catug.org/Bible_Reference_Taggers