Hi,
Can you confirm that the script you embedded on your page still matches the one above?
Whereas you’re using <!-- and --> above, I’m seeing // in both instances when it’s displayed on your page.
Thread Starter
v3nd0
(@v3nd0)
Here are screenshots from page:
page in edit
and this is what I want and see on my browser:
Screen
-
This reply was modified 3 years, 9 months ago by
v3nd0.
Okay, so it appears WordPress itself is transforming those lines. Without a big think and re-write there’s nothing immediate I can do about that.
However… I’m not sure why those lines are there anyway.<!-- and --> are used to indicate HTML comments, but this is JavaScript. What happens if you remove those 2 lines? i.e. it looks like this…
<div id="divRRPublish" class="RRPublish"></div>
<script type="text/javascript" src="https://my.raceresult.com/RRPublish/load.js.php?lang=en"></script>
<script type="text/javascript">
var rrp=new RRPublish(document.getElementById("divRRPublish"), 210488, "results");
rrp.ShowTimerLogo=true;
rrp.ShowInfoText=false;
</script>
Thread Starter
v3nd0
(@v3nd0)
Without any changes. On mine computer still display as before and on others devices still spinning wheel. I am so confused …
Do you know what the difference is between your computer and others? Are you using different browsers, for example?
Try visiting your website in Private/Incognito and see if it still works.
Thread Starter
v3nd0
(@v3nd0)
MacOS :
opera – logged as administrator works
safari – without logging not working
IOS:
safari, opera – not logged not working
Win:
opera – not logged not working
edge – logged as administrator and work
looks like administrator/visitor issue?
Yeah, so looks as if being logged in makes a difference here.
At this point, we must part ways. This is not related to the plugin but the code which you’re trying to embed and I can’t assist with that.
Your best bet here is to go back to wherever you got that code from to ask for assistance – I’m guessing it’s clashing in some way with your site set-up. Looking at the JS console in my browser I’m seeing this error, for example, which appears related to that script…
[Error] TypeError: $.getJSON is not a function. (In '$.getJSON(rrp_server+"/RRPublish/data/config.php",{eventid:eventid,page:page,noVisitor:getCookie("ys"+eventid)})', '$.getJSON' is undefined)
Thread Starter
v3nd0
(@v3nd0)
So after additional searching I have to turn off under Divi – Performance – Enqueue jQuery Compatibility Script. Just for future if someone will have similar issue. Thank a lot for effort and spent time.