Why won't the HTML code display in the Text/HTML widget?

  • Unknown's avatar

    When I post HTML code into Text/HTML widget, half of it disappears when I save. I’m posting a code to add another site’s widget (Yardbarker.com) and for some reason when I hit save, the first paragraph of the code disappears and doesn’t display on my wordpress site.

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

  • Unknown's avatar

    Hi there!

    It sounds like you may be entering a form of code that is not allowed on WordPress.com. There are several types of embed code that we don’t allow on WordPress.com for security reasons, such as iframes and script. You can read more about the code we do and don’t allow here:

    Add Code to Your Site

    Can you post the code you’re trying to embed? You can either put it in this forum thread, or save it in a draft post.

    Let me know if I can help with anything else!

  • Unknown's avatar

    ok, here is the code that i’m trying to post:

    <iframe id=”yb_widget_74501″ frameBorder=”0″ scrolling=no style=”width: 160px; height: 484px; border: 0px;” src=”http://www.yardbarker.com/widget/ybn/74501″></iframe>
    <div style=”width: 160px; padding: 2px 0px 20px 0px; font-size: 11px; line-height: 12px; clear: both;”>  All Sports Rumors & News ></div>

  • Unknown's avatar

    the top paragraph is what gets deleted

  • Unknown's avatar

    Yep! That’s an iframe, which is not allowed on WordPress.com.

    The link I gave you before can tell you more about that.

    Let me know what type of information you were trying to embed and I can help you find a way to add it to your blog!

  • The topic ‘Why won't the HTML code display in the Text/HTML widget?’ is closed to new replies.