Title: Problem with script code
Last modified: August 19, 2016

---

# Problem with script code

 *  [gnp](https://wordpress.org/support/users/gnp/)
 * (@gnp)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problem-with-script-code/)
 * 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](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/](http://test.woothemes.com/artplates/)
 * Thanks if anyone has any ideas.

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

 *  Thread Starter [gnp](https://wordpress.org/support/users/gnp/)
 * (@gnp)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problem-with-script-code/#post-1509379)
 * From this page:
    [http://codex.wordpress.org/WordPress_Widgets#E](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](https://wordpress.org/support/users/gnp/)
 * (@gnp)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problem-with-script-code/#post-1509384)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [gnp](https://wordpress.org/support/users/gnp/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/problem-with-script-code/#post-1509384)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
