How to add script codes to widgets?
-
Hello all,
Is there a way to add script codes to widget?
I have tried this in a text widget but didn’t work:
<script type="text/javascript"> var vglnk = { api_url: '//api.viglink.com/api', key: '537b172bf21b171b513d3fab4668f7c0' }; (function(d, t) { var s = d.createElement(t); s.type = 'text/javascript'; s.async = true; s.src = ('https:' == document.location.protocol ? vglnk.api_url : '//cdn.viglink.com/api') + '/vglnk.js'; var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r); }(document, 'script')); </script>
Thanks in advanced.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add script codes to widgets?’ is closed to new replies.