I am trying to add an embedded form into my page and I was given this code to do so:
I’m honestly not very familiar with adding code. I’m attempting to simply add the code in the code window of the page, but obviously I’m missing something.
$w.onReady( function () {
//TODO: write your page related code here…
});
Can someone help me to get this form to work on my site?
Thanks!
That is because it shouldn’t go in your page code!
Simply go and add an html iframe to your page and click on edit code to add that code to it.
That was actually my first move, but when I did that and previewed the page it was blank.
You should just add an html iframe to your editor and click on edit code, make sure that code is selected and paste this into the box:
Then click on update and it should be viewable in your editor, at least in your editor preview, before you go and save and publish your website. Also make sure that you haven’t got any of that same code in your page code too.
I’ve taken you code and tried it myself in a html iframe and it does indeed just give me a blank box. I’ve tried changing the code setting to website setting and it then just lists all of the code for the widget in the iframe itself.
I’ve also tested the code on ‘https://jsfiddle.net/’ in the html section and the output shown is the form itself. I have also taken the embed code that is on that form and tested that too.
With the only difference being the “…” instead of the ‘…’
I would go back to your original code and make sure that it is right and is the full code for that widget, bearing in mind that when I searched for Kimbia widgets it gave me GiveGab as they belong to them.
Plus, if you look at the code sampled in the GiveGab instructions page, then it does appear longer and contain more detail than your existing code, it also states: If you have an existing donate button, this code for the Embeddable Donation Form can replace that one.
https://support.givegab.com/add-a-donate-button-to-your-website/how-do-i-add-the-givegab-embeddable-donation-form-to-my-website
The only other place is in your head, body or foot section in Tracking and Analytics, however this widget code does not belong in there!