• Hello Everyone !!
    I am writing blog on crypto currency. I am affiliate with changelly.com. When i tried to install their html custom code in widget. It is showing error that ” The attribute name of [on Load] must be in lower case.
    Here is the code:
    <script src="https://widget.changelly.com/affiliate.js"></script> <iframe src="https://widget.changelly.com?currencies=*&from=btc&to=eth&amount=1&address=&fiat=true&fixedTo=false&theme=desert&merchant_id=xxxxxxxxxxxxxxxx" width="100%" height="600" class="changelly" scrolling="no" onLoad="function A(e){var t=e.target,n=t.parentNode,r=t.contentWindow,a=function(){return r.postMessage({width:n.offsetWidth},g.url)};window.addEventListener('resize',a),a()};A.apply(this, arguments);" style="min-width: 100%; width: 100px; overflow-y: hidden; border:

    I made it lowercase as well. But when i update on website. It is showing error that

    Widget is not allowed on this domain

    If you are the owner of the site, to make the widget visible, you need to open the widget settings page and provide your domain name, where the widget will be displayed.

    I tried this with different theme as well.
    Pls help me out.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    onload="function A(e){... is correct. The error you see about widget not allowed on your domain is not regarding the WP widget, it’s referring to the widget the script is trying to load from changelly.com. You need to go to your account there to declare your site’s domain.

    Thread Starter cryptooggy

    (@cryptooggy)

    I already did it 8 times. My website is there when i am generating code.

    Moderator bcworkz

    (@bcworkz)

    Ugh, that’s frustrating. It’s apparent all is working on the WP end, or you wouldn’t even get such a message from changelly.com, like what happened with onLoad=. I’m sorry to give you the run around, but your best recourse is to seek assistance through Changelly support. It’s their widget that refuses to show on your site. WP is correctly providing the references to code that shows the widget, what that code does is outside of our purview. As it’s Changelly’s code, they are in the best position to offer help when it does not work for you.

    Thread Starter cryptooggy

    (@cryptooggy)

    Thanks buddy.. I will contact them, lets see what they suggest..

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Widget code is showing error’ is closed to new replies.