How do I embed code into a WordPress.com post?

  • Unknown's avatar

    I’m trying to embed a widget from ShopSense into my post. I was able to do it on one post by hitting “code” and then “code” again after pasting the “embed code” from ShopSense. I tried to do the exact same thing in another post and am only getting a gray box with a little arrow in the middle. Can anyone help?

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

  • We block some code for security reasons. What is the code you are trying to embed? Can you paste it here?

  • Unknown's avatar

    Hi! I’m having the same problem.

    <div class=”shopsense-widget” data-options=”%7B%22columns%22%3A2%2C%22rows%22%3A3%2C%22showBrand%22%3Atrue%2C%22showRetailer%22%3Afalse%2C%22showInfo%22%3Afalse%2C%22showPrice%22%3Atrue%2C%22showSalePrice%22%3Afalse%2C%22size%22%3A410%2C%22pid%22%3A%22uid2225-26458415-58%22%2C%22productIds%22%3A%5B459673329%2C464621568%2C466335016%2C454600706%2C460578525%2C459307601%5D%7D”><script> !function(doc,s,id){ var e, p; if(!doc.getElementById(id)) { e = doc.createElement(s); e.id = id; p = ‘//shopsensewidget.shopstyle.com/widget-script.js’; var cb = new Date().getTime(); p += ‘?cb=’ + cb; e.src = p; doc.body.appendChild(e); } if(typeof window.ss_shopsense === ‘object’){ if(doc.readyState === ‘complete’){ window.ss_shopsense.init(); } } }(document, ‘script’, ‘shopsensewidget-script’); </script> <iframe src=”//shopsensewidget.shopstyle.com/#/?options=%7B%22columns%22%3A2%2C%22rows%22%3A3%2C%22showBrand%22%3Atrue%2C%22showRetailer%22%3Afalse%2C%22showInfo%22%3Afalse%2C%22showPrice%22%3Atrue%2C%22showSalePrice%22%3Afalse%2C%22size%22%3A410%2C%22pid%22%3A%22uid2225-26458415-58%22%2C%22productIds%22%3A%5B459673329%2C464621568%2C466335016%2C454600706%2C460578525%2C459307601%5D%7D” height=”1335px” width=”910px” seamless style=”border: 0;”></iframe></div>

  • I’m sorry, but that embed code will not work because we do not allow certain tags on WordPress.com for security reasons, including JavaScript, Flash, iframe, form, and input tags.

    These restrictions are in place to prevent any disruptions in service due to potentially malicious code.

    You can read more about this here:

    Code

  • Unknown's avatar

    <div class=”shopsense-widget” data-options=”%7B%22columns%22%3A3%2C%22rows%22%3A2%2C%22showBrand%22%3Atrue%2C%22showRetailer%22%3Afalse%2C%22showInfo%22%3Afalse%2C%22showPrice%22%3Atrue%2C%22showSalePrice%22%3Afalse%2C%22size%22%3A250%2C%22pid%22%3A%22uid9169-26554737-47%22%2C%22productIds%22%3A%5B465717336%2C455058679%2C439654721%2C455337683%2C457322967%5D%2C%22type%22%3A%7B%22name%22%3A%22Type%20of%20Widget%22%2C%22list%22%3Anull%2C%22model%22%3A%22quicklist%22%7D%7D”><script> !function(doc,s,id){ var e, p; if(!doc.getElementById(id)) { e = doc.createElement(s); e.id = id; p = ‘//shopsensewidget.shopstyle.com/widget-script.js’; var cb = new Date().getTime(); p += ‘?cb=’ + cb; e.src = p; doc.body.appendChild(e); } if(typeof window.ss_shopsense === ‘object’){ if(doc.readyState === ‘complete’){ window.ss_shopsense.init(); } } }(document, ‘script’, ‘shopsensewidget-script’); </script> <iframe src=”//shopsensewidget.shopstyle.com/#/?options=%7B%22columns%22%3A3%2C%22rows%22%3A2%2C%22showBrand%22%3Atrue%2C%22showRetailer%22%3Afalse%2C%22showInfo%22%3Afalse%2C%22showPrice%22%3Atrue%2C%22showSalePrice%22%3Afalse%2C%22size%22%3A250%2C%22pid%22%3A%22uid9169-26554737-47%22%2C%22productIds%22%3A%5B465717336%2C455058679%2C439654721%2C455337683%2C457322967%5D%2C%22type%22%3A%7B%22name%22%3A%22Type%20of%20Widget%22%2C%22list%22%3Anull%2C%22model%22%3A%22quicklist%22%7D%7D” height=”590px” width=”855px” seamless style=”border: 0;”></iframe></div>

  • I’m sorry, but that embed code will not work because we do not allow certain tags on WordPress.com for security reasons, including JavaScript, Flash, iframe, form, and input tags.

    These restrictions are in place to prevent any disruptions in service due to potentially malicious code.

    You can read more about this here:

    Code

  • Unknown's avatar

    Given it appears to be either ecommerce or affiliate widget code, even if you could get it working it would probably be against the terms of service here.

  • The topic ‘How do I embed code into a WordPress.com post?’ is closed to new replies.