How can I put a javascript in the code of the widget?
-
How can I put a javascript in the code of the widget?
For example like this:
<script type=”text/javascript” src=”http://app.getresponse.com/view_webform.js?wid=8275001&u=fdkM”></script>
The blog I need help with is: (visible only to logged in users)
-
You can paste that JavaScript directly into a Text Widget.
https://en.support.wordpress.com/widgets/text-widget/ -
-
Hey there!
That embed code will not work because we do not allow certain tags on WordPress.com, for security reasons, including JavaScript, Flash, iframe, form, and input tags.
These restrictions are in place to prevent any disruptions in service due to potentially malicious code.
You can read more about this here:
If you were hoping to add a webform to your site, I suggest adding one of our contact forms:
http://en.support.wordpress.com/contact-form/
Or, you can create your own widget that links to your outside webform, and add it to your sidebar:
http://en.support.wordpress.com/widgets/create-your-own-widget/
If there was something else you were hoping to accomplish, let me know and perhaps I can help further. Many thanks!
- The topic ‘How can I put a javascript in the code of the widget?’ is closed to new replies.