Title: Widget code is showing error
Last modified: July 7, 2019

---

# Widget code is showing error

 *  [cryptooggy](https://wordpress.org/support/users/cryptooggy/)
 * (@cryptooggy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/)
 * 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.
    -  This topic was modified 6 years, 11 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This topic was modified 6 years, 11 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwidget-code-is-showing-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/#post-11708479)
 * `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](https://wordpress.org/support/users/cryptooggy/)
 * (@cryptooggy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/#post-11708687)
 * I already did it 8 times. My website is there when i am generating code.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/#post-11712287)
 * 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](https://wordpress.org/support/users/cryptooggy/)
 * (@cryptooggy)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/#post-11712554)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [cryptooggy](https://wordpress.org/support/users/cryptooggy/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/widget-code-is-showing-error/#post-11712554)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
