Need help? Check out our Support site, then


Blog Headlines: Why is [&nbsp] appearing when shared socially?

  1. WordPress is adding [&nbsp] to the headlines of my blog posts. For example, Celebrate Hispanic Heritage Month becomes 'Celebrate Hispanic Heritage Month' when the story is shared via Twitter or Email to a Friend.

    I looked in the source code and wordpress is adding [&nbsp] to my headlines. Why does it add it only in front of the last word? Is there any way to prevent this? Thanks!

    The blog I need help with is lnnetworknews.wordpress.com.

  2. Thanks for the report. I have flagged this thread for Staff attention.

  3. I'm not seeing this myself. Are you sharing manually via the button, or automatically via Publicize and email subscriptions?

  4. When you activate "sharing," it allows visitors to post your blog on their social networks, blog, and e-mail. Does it automatically send it to your own Facebook and Twitter accounts (assuming you already activated them)? In other words, I'd like strangers to get my blogs and share, but I don't want them posted on my social sites, yet. Any thoughts?

  5. No, it does not. Publicize does that.

  6. sorry...let me explain a little bit better

    check out our July Newsletter link null

    For each individual story, when you click the sharing icons, it will share the respective blog post on WordPress. When you use Twitter or the Email icon in our newsletter, the headline is incorrect ([&nbsp] is inserted into the headline)....it is pulling the headline from WordPress...Facebook, LinkedIn are ok but Twitter and Email pull in unnecessary [&nbsp]....we use AddThis for these sharing icons...does this make more sense?

  7. Those sharing buttons are added by your third-party newsletter service, and we have no control over the content they provide to Twitter, Facebook, etc.

  8. @lnnetworknews: Despite the above replies, the nbsp is added by WP (as you've found out). In case you're not familiar with this, this snippet is the HTML entity for a non-breaking space. The regular space between the last two words of a title is always turned to a non-breaking space by WP, to prevent "orphans" (single word as the last line of a paragraph). That's an invention of Matt, founder of WP; he's that anal, he's said on video.

  9. thank you, justpi, for the insight...but is there any way to fix it? just looks unprofessional...i see it all the time in other social sharing, but i was just hoping there was a workaround

  10. Many times, though, that nbsp results in headlines that look like this:

    Vår
    internationella bokvecka

    which is certainly not very good either.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags