Forums

"nbsp;" doesn't work (7 posts)

  1. Konstantin
    Member
    Posted 4 years ago #

    Hi!
    Since I work with WP 2.3, I can't insert a blank line with the "nbsp;"-code anymore. WordPress saves the site or entry and displays it correctly, but whenever I edit an entry, wordpress deletes the "nbsp;" from the code.

    Any solutions for this problem?

    thanks
    klepto

  2. uncladchef
    Member
    Posted 4 years ago #

    Something like this works for me.

    <p> </p>

  3. spligum
    Member
    Posted 4 years ago #

    Are you using an "&" sign in front of it?

    Try upgrading to 2.3.1 if you are. I noticed many bugs I was having are now gone since switching.

  4. Konstantin
    Member
    Posted 4 years ago #

    Yes, I used it with the "&" sign. I just upgraded to 2.3.1 and now everything seems to run :)

    Thanks to everybody.

    klepto

  5. mangoninja
    Member
    Posted 4 years ago #

    i hate to bring up old threads, but i am having similar troubles with wordpress 2.5

    i have no idea how to add a blank line to a post anymore, wordpress doesnt add the nbsp, even after i do an align and all that. how do people actually add a blank line after a paragraph? because it is not working for me. keeps reverting back to no blank line when i switch to html view.

  6. webmagnets
    Member
    Posted 4 years ago #

    I use <BR /><BR />

  7. syncbox
    Member
    Posted 4 years ago #

    I'd use since WordPress is xhtml and all tags should be lowercase.

    The bigger question is why you want hard line breaks. That would help determine how to achieve them without using breaks this way -- typically not a good idea unless you have a good reason to do it.

    If you simply don't like the space between paragraphs, edit the style.css file to change the margins (top and bottom or both) for whatever rule that affects the paragraphs, probably in .entry p or something similar.

    It's almost always a good idea to use a 0 margin-top and set the spacing for the margin-bottom below paragraphs. Note that in modern browsers, vertical margins collapse in favor of the larger value.

    If you still need &nbsp; put it between tags, as in <p>&nbsp;</p>

    HTH
    Casey

Topic Closed

This topic has been closed to new replies.

About this Topic