Why Does WordPress Shorten My Code for a Text Widget?

  • Author
    Posts
  • #1241882

    Hi,

    I am trying to enter a button for Pinterest (other word press blogs have it). When I add the code in the ext widget (Follow Me on Pinterest!) it shortens it to (Follow Me on Pinterest!) so the link works but there is no button.

    I’d really like a button. Please help!

    The blog I need help with is offtheeatenpathblog.com.

    #1242059

    justpi
    Member

    To display code here you need to enclose it in backticks (see the note on “allowed markup”).

    #1242061

    Sorry I’m new. Where could I find that note?

    Thanks!

    #1242064

    justpi
    Member

    To the left of the reply field.

    #1242216

    Sorry one more question. Could you please write out how it would look? I tried to enclose in backticks as you suggested and it is still not working.

    Follow Me on Pinterest!

    #1242224

    justpi
    Member

    “To display code here” meant here in the forum, so we can see the code and tell you what’s going on with it.

    #1242231

    Woops. Here:

    <a data-pin-do="buttonFollow" href="http://pinterest.com/chrissiebeth5/">Follow Me on Pinterest!</a>

    #1242232

    justpi
    Member

    “data-pin-do” isn’t a recognized HTML attribute: it’s probably associated with a javascript script (which we’re not allowed to use on wordpress.com), so it’s meaningless by itself and it’s stripped out.

    If you want a Pinterest button in your sidebar, you can copy a Pinterest logo to your computer, upload it to your blog, and use it in an Image widget or a Text widget.
    If you want a Pin It button under your posts, you can do it in Settings > Sharing.

The topic ‘Why Does WordPress Shorten My Code for a Text Widget?’ is closed to new replies.