• Hello all,

    Is there a way to add script codes to widget?

    Say for a advert code was a script.

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • A text widget should work.

    Thread Starter ExodiusUK

    (@exodiusuk)

    Hello,

    thanks for your reply, hmmm i did try that, i added to a text widget:

    <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>

    and didnt work :/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add codes to widgets?’ is closed to new replies.