Sidebar text widget displaying as html code

  • Unknown's avatar

    Hi everyone,
    I’ve got three sidebar widgets (two linking to books on amazon, one to my instagram account), and I’m trying to add another one, but every time I try to add (using the text widget) it ust shows up as html code in the sidebar. Any ideas? This is the code I’m trying to use.

    <script charset=”utf-8″ type=”text/javascript”>
    amzn_assoc_ad_type = “responsive_search_widget”;
    amzn_assoc_tracking_id = “thomasfay-21”;
    amzn_assoc_marketplace = “amazon”;
    amzn_assoc_region = “GB”;
    amzn_assoc_placement = “”;
    amzn_assoc_search_type = “search_widget”;
    amzn_assoc_width = “auto”;
    amzn_assoc_height = “auto”;
    amzn_assoc_default_search_category = “”;
    amzn_assoc_default_search_key = “”;
    amzn_assoc_theme = “light”;
    amzn_assoc_bg_color = “FFFFFF”;
    </script>
    <script src=”//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=GB”></script>

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

  • Hey there,

    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

    Let me know if you have any questions.

    Thanks!

  • The topic ‘Sidebar text widget displaying as html code’ is closed to new replies.