WordPress.org

Support

Support » How-To and Troubleshooting » Issue with <br> in Posts

Issue with <br> in Posts

  • I am using the WP default template and when I create a page, I have no issues with structure. But with posts, for some reason I am not getting the <br> to work and after I submit the post, the <br> not only does not work, it dissapears. Can someone take a look and let me know what I might be doing wrong? If you look at this site http://wrcl.org, on the main page I have a post and the first line and the last line are bold and aligned center. Those two lines are to be seperated from the main portion of the post by one line. What could be causing the issue? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You probably want those 2 things wrapped in a:
    <p>blah</p>
    tag.
    On FF 1.5 I am getting the <br>.

    I’m not sure, but it might have to do with some errors on your page; it’s not validating. See http://validator.w3.org/check?uri=http%3A%2F%2Fwrcl.org%2F.

    have you tried using <br /> instead of <br>?

    I was actually thinking that, too, but I was thinking WP would automatically do that for him, until I remembered there’s a box to check in Options that will fix XHTML, so he might not have that checked.

    Thanks all. It seems that when I try to do an align center and the break it messes it up. I deleted the post and re did it with it aligned left and it works and no validation errors. Not sure why. I have also tried using paragraph tags and did the
    but no luck. I don’t quite understand it.

    Mike

    Are you using align=left (or right) as an attribute in HTML? It might be clashing with CSS settings, if it’s not working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue with <br> in Posts’ is closed to new replies.