Adding a just giving widget to a blog post

  • Unknown's avatar

    Hello

    I am trying to add a hjust giving widget;

    <div id=”jg-widget-bch2015-957″></div><script>(function(){var id=”jg-widget-bch2015-957″,doc=document,pfx=(window.location.toString().indexOf(“https”)==0)?”https”:”http”;var el=doc.getElementById(id);if(el){var js=doc.createElement(‘script’);js.src=pfx+”://widgets.justgiving.com/fundraisingpage/bch2015?enc=ZT1qZy13aWRnZXQtYmNoMjAxNS05NTcmdz00MDAmYj1pbm5lcixkb25hdGUmaWI9dGl0bGUsc3VtbWFyeSxwcm9ncmVzcyxyYWlzZWQsdGFyZ2V0″;el.parentNode.insertBefore(js, el);}})();</script>

    I have added the code above that was generated by just giving to the HTML in the new editor, however the HTML code shows not the widget.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    That’s javascript, and it will always be stripped out for security reasons. Create a text widget instead with an image and a link to the fundraiers page at Justgiving.

  • Unknown's avatar

    Thanks Raincoaster- Thais a shame I wanted it to be a live update. Thanks for solving the mystery.

  • The topic ‘Adding a just giving widget to a blog post’ is closed to new replies.