java code on text widget worked perfectly fine for others….not for me…

  • Unknown's avatar

    I sell items on teacherspayteachers.com this is a code that works well for other people…there is even a youtube tutorial on how to do this. It is not working for me. this is a rotating and moving widget with your products inside. ALL I get it code. Tell me please what the problem is….I have a shortlink at the the top and perhaps my browser needs to be updated but other viewers are telling me they don’t see the widget…only code.

    (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/6759’;
    tjs.parentNode.insertBefore(js, tjs);
    })(document, ‘script’);

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

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

  • Unknown's avatar

    let me clarify….on the top right of the screen there is a dropdown menu with a short link. I don’t know if this is a problem.

    The code is supposed to create a rotating widget of my products. I believe it was successful before. But now once I enter it into the text widget and hit save (sometimes I hit refresh, though not always) and go to view the blog, all that is there is the script.

    I need the widget there, and I don’t know why WordPress feels so cumbersome to me…

    ANY clear and easy help that I can easily follow would be helpful.
    If is it just that my browser is old or something…well I need someone to update it.

  • Unknown's avatar

    Maybe the others it worked for are on WordPress.org self-hosted blogs. Javascript will not work here. See WordPress.com and WordPress.org

  • Unknown's avatar

    Also see “code” for details of the restrictions on WordPress.com blogs. These restrictions apply to posts, comments, and text widgets.

  • The topic ‘java code on text widget worked perfectly fine for others….not for me…’ is closed to new replies.