How to add a teachers pay teachers widget to my blog

  • Unknown's avatar

    I am trying to add a teachers pay teachers widget to my blog. The teachers pay teachers website gives me the following information to tell me how to put the code on my blog for the widget:

    Your TpT Widget Code:

    1. Include this JavaScript code on your page once, ideally right after the opening <body> tag.

    <script type=”text/javascript”>
    (function(d, s) {
    var js, tjs = d.getElementsByTagName(s)[0];
    js = d.createElement(s);
    js.type = ‘text/javascript’;
    js.async = true;
    js.src = ‘http://www.teacherspayteachers.com/widgets/get/3667’;
    tjs.parentNode.insertBefore(js, tjs);
    })(document, ‘script’);
    </script>

    2. Then, place this code snippet wherever you want the widget to appear on your page.

    <div id=”tpt-widget”></div>

    Do I need to adjust this code to make it work on WordPress as I don’t see anywhere that I can add the code to the <html> code on my blog.

    Thanks!

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

  • Unknown's avatar

    That JavaScript widget cannot be used here on this multiuser blogging platform where security and stability are primary concerns as a single bad script could bring down many blogs. If you hire a web host and set up your own WordPress.org install then the only security risk will be to it and no other site. http://en.support.wordpress.com/code/

  • The topic ‘How to add a teachers pay teachers widget to my blog’ is closed to new replies.