• Hi, working on my website, every time I edit a page and save it, WP automatically adds &nbsp all over the place.

    Is there a simple way to avoid this from happening?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Is it “ “, or “&nbsp“?

    The first one ( ) the ascii code for a space, so it doesn’t really matter unless it’s displayed on the front end. The latter can be a problem.

    Have you switched off all plugins and changed a theme to a default theme? It’s something that isn’t done by WordPress natively, so suspect it’s something being added.

    Do you have an example of where it is being added?

    I usually have the opposite problem and have to add those in “text mode” whenever the editor ignores, refuses or even removes my extra carriage returns.

    The WordPress editor still does a very poor job of formatting content, the primary purpose of WordPress, so stopping those inserted spaces is a matter of learning how to work with the editor where it does not yet know how to work for you.

    edit: I see I might have made an error here in assuming you were talking about inserted spaces. If that is the case, please excuse the ring.

    Thread Starter futurewise

    (@futurewise)

    It is  

    And it does matter as it creates spaces where there shouldn’t be any.

    Can’t show an example as we have our site under maintenance right now.
    Launching a renewed website is a pain when this is happening.

    As for knowing how to work with the editor. Believe me, me and my team know. Creating a page goes wonderfully. Then going back in, to change a link and the minute you open it for editing, there are all the spaces on places where we definitely didn’t put them.

    Thread Starter futurewise

    (@futurewise)

    My question being asked here is to find if there is a way to stop this autofilter (as I think that is what is causing it) by some CSS code or something…

    …a way to stop this autofilter (as I think that is what is causing it) by some CSS code or something…

    I would guess that would be quite a challenge using php to “edit the editor”.

    Are your pages actually being written in the editor or are they being pasted in from another editor? If pages are first being written elsewhere, anything other than “plain text” in its rawest form could be bringing things in that are triggering the WordPress editor to add the spaces either then or later.

    Another thing to try as a discovery experiment might be to go to “text mode” and copy whatever is there into a code editor (true “plain text”) where search-and-delete could get rid of anything and everything other than what should actually be there, then see whether the WordPress editor nevertheless continues to act as it does.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘&nbsp being added automatically’ is closed to new replies.