Reftagger with a Wix website

Any way someone there could create a Wix store app to enable the Reftagger on Wix created websites?
They provide an HTML widget, but the Reftagger script will not run correctly in it.
There are many out there who would appreciate it greatly!
Thanks,
Andrew
Comments
-
Thanks for bringing up this concern again. I'd asked about it last year and never received an answer so I completely forgot about it!
Thanks again Andrew!
0 -
Thank you T.L. and Andrew,
We're considering support for Wix. To help evaluate what's necessary, can you share which websites you'd install Reftagger on? Feel free to respond in this thread, or message me on Faithlife.
Thanks,
Jim0 -
I don't mind at all. I would like to use Reftagger on my personal blog site, www.thinkongod.org.
No content up yet, so don't rush over there. Sorry.
Thanks for responding to my post. I think many people would benefit from a solution to this issue.
Andrew
0 -
This is a reply from a Wix person regarding the javascript issue.
"Unfortunately the only way to do so will be uploading it to an external hosting service, and then use an IFRAME to show it under your site. You could also have your CSS and Javascript code on separate files hosted externally, and just give a reference to them on your HTML code."
Could Reftagger host the code alone on a special page and let Wix users try to reference it on our sites through our HTML widget?
Just a thought. If you would like to use my site for testing, I would be glad to help.
Thanks,
Andrew
0 -
Because of the way that Wix loads content from apps, it is not possible to use RefTagger with Wix.
RefTagger works by inspecting the content of a site when it loads, looking for Bible references and tagging them as necessary. On most sites, RefTagger has access to the entire page; however, because of browser security restrictions, it cannot do so if it has been loaded via an iframe.
Unfortunately, this is precisely how Wix loads all of its apps, including the HTML app. This means that RefTagger can only access the content within the HTML app that loads it.
If you want to continue to use Wix, you could place all of your "taggable" content within a single HTML app that also contains a reference to the RefTagger script, but in doing so, you'd lose most of the benefits of using Wix in the first place.
David Mitchell
Development Lead
Faithlife0 -
Aaaargh! Thanks for the info, David. I thought I was getting close with a google drive file containing the script but as you said, Wix would not run it against the rest of the site.
Well. That is no fun.
Thanks,
Andrew
0 -
Hey guys, any development for Wix yet?
my site is www.visitclearviewchurch.org, go to the Theology page for the blog.
Thanks,
Jeff
0 -
Jeff Johnson said:
Hey guys, any development for Wix yet?
As far as I know, the architecture of Wix has not changed significantly since the last post, so this is still impossible.
David Mitchell
Development Lead
Faithlife0 -
It's been 2.5 years since last comment on this matter-- any update???
0 -
Robert Lilley said:
It's been 2.5 years since last comment on this matter-- any update???
Hi Robert,
We haven't changed anything about Reftagger significantly in the past couple years, so not unless Wix has changed.
0 -
Maybe if we all asked Wix directly to do something about it??
on their App Market, after you search for reftagger, there is an option to request an app. I just requested, but if more of us do, maybe something can be done.....?
0 -
I would install it on citychurchgarland.org.
0 -
I have had quite a few emails with Wix and as far as I can see there is no hope of anything changing. The last reply I had from them on Thursday, 11th March 2021, was:
"I have checked with our technical team and found out that this package can’t be approved as it’s built with native code and typescripts that are not supported in our platform."
I have decided the only thing I can do is put the scriptures in full, either in indented paragraphs immediately after the paragraphs where they are quoted, or at the end of a page where people can jump to see them if they wish. At least this way they can still be seen without interrupting the flow of the main text.
Blessings. Les
0 -
Mission: To serve God as He desires.
0 -
-
I second it.
0 -
I have finally found a solution to this issue.
If you want to know the details of the cause, you can read more here. https://github.com/nsn-amagruder/RefTagger
The solution is to set the timeout on the RefTagger script so it will not run for 3 seconds after the initial page load. This will allow the Wix javascript file to run first so that the RefTagger.js will overwrite the variables vs getting its functions/variables overwritten. If your site loads slow, you many need to increase the timeout from 3 seconds to 4 or 5. You will see a three second delay before RefTagger starts working.
In Wix, set this script to only run on the Post page for the blog. The script w/o the SetTimeout works fine on static pages.
<script>
var refTagger = {
settings: {
bibleVersion: 'NKJV'
}
};setTimeout(() => {
(function(d, t) {
var n=d.querySelector('[nonce]');
refTagger.settings.nonce = n && (n.nonce||n.getAttribute('nonce'));
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.src = 'https://api.reftagger.com/v2/RefTagger.js';
g.nonce = refTagger.settings.nonce;
s.parentNode.insertBefore(g, s);
}(document, 'script'));
}, "3000")
</script>0 -
Wow! Thank you for this--the only code that I found anywhere that works with Wix. I really appreciate it. Works on the mobile version as well. See it in effect at www.prophecyresources.com. I truly appreciate those who make resources like this available. Blessings!
0