Widgets not accepting code

  • Unknown's avatar

    Hi, I have wasted a couple of hours trying to embed a code into the ‘text’ widget and then the ‘image’ widget. Both of these widgets refuse to accept the code, even though it’s been designed for blog widgets. The code comes from the ‘Spoonflower’ website. I have pasted it below for your reference. Can you please help?

    <div id=”portfolio”> </div>
    <script type=”text/javascript” src=”http://www.spoonflower.com/javascripts/portfolio.js”> </script>
    <script type=”text/javascript”>portfolio(“shop”, “small”, “freshtastic”, “3”, “5”, “426891”) </script>

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

  • Unknown's avatar

    There are some codes which are forbidden as security risks on WordPress.COM and will be stripped out by our software.
    From your example:

    script type=”text/javascript”

    a quick search of the very good wp.com Support documents brings up these details:
    http://en.support.wordpress.com/?s=code
    specifically:
    http://en.support.wordpress.com/code/

    WordPress.com is a type of shared environment, where all users are running off of the same software. This is great because it allows us at Automattic to update millions of blogs at the same time with a single click. It means we can fix bugs or offer new features very quickly, which is a win for you as users. Having all users running on the same software can also be dangerous. If we aren’t careful, one user has the potential to take down the entire site. So this is why we need to limit some of the things you post on your blog.

    See here:

    Add Code to Your Site

  • The topic ‘Widgets not accepting code’ is closed to new replies.