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

  • Author
    Posts
  • #991100

    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.

    #991263

    timethief
    Member

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

    #991331

    macmanx
    Staff

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

    #991412

    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?

    #991415

    raincoaster
    Member

    No, it does not. Publicize does that.

    #991420

    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?

    #991429

    macmanx
    Staff

    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.

    #991456

    justpi
    Member

    @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.

    #991481

    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

    #991504

    panchamkauns
    Member

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

    Vår
    internationella bokvecka

    which is certainly not very good either.

The topic ‘Blog Headlines: Why is [&nbsp] appearing when shared socially?’ is closed to new replies.