• I was trying to add a script code for my etsymini into an html widget. Everytime I clicked on save, the code would shorten.

    I also tried installing it into the html page in the edit window of a post, same thing happened.

    I know the script works, because it installed fine on my Squarespace website. I also tried it in various themes, including the WP default theme and it always shortened when I clicked on either save in the widget or publish in a post.

    Any idea what might be going on?

    Here’s the script.

    <script type=’text/javascript’ src=’http://www.etsy.com/etsy_mini.js’></script><script type=’text/javascript’>new EtsyNameSpace.Mini(9152349, ‘shop’,’thumbnail’,4,4).renderIframe();</script>

    Here’s what it shortens to
    new EtsyNameSpace.Mini(9152349, ‘shop’,’thumbnail’,4,4).renderIframe();

    I’m just trying out a theme on the WooThemes test site here:
    http://test.woothemes.com/artplates/

    Thanks if anyone has any ideas.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gnp

    (@gnp)

    From this page:
    http://codex.wordpress.org/WordPress_Widgets#E

    Here’s a list of content known to work via text widgets. Each of these content providers supplies the necessary code for you to copy and paste into your widget to display their content on your blog.

    Etsy Mini-Shop – html for you Etsy Mini-Shop
    ==============

    That’s the script I’ve been trying to install. I wonder why I can’t get it to work.

    Thread Starter gnp

    (@gnp)

    Well it appears that for the text widget, the problem was the WooThemes test site. It works on my own wordperss site.

    How can I get it to work in the posts though?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with script code’ is closed to new replies.