Forums

<p></p> and <br /> in posts not working? (51 posts)

  1. hikarimoro
    Member
    Posted 4 years ago #

    ^hmm...well i wasn't having that problem.
    for me. in the WYSIWYG visual editor it will do the breaks ( <br */> and <p*>):

    see here

    but then for some reason when i post it'll completely ignore the paragraph breaks and turn them into single line breaks:
    click
    and oddly enough if you view the source for my blog you'll see that the paragraph breaks are there:
    click
    but according to the WordPress HTML editor they're not >__<:
    click

    now, on my last WordPress update for 2.3.1/2 oddly enough i managed to get the breaks using the
    &*nbsp;<br /*>
    method that was mentioned before (last time i tried before those updates. they wouldn't work >>;; )
    that's great that i can get them now. but heck i don't want to have to go and paste that everytime i want a paragraph break >__< (now that is just incredibly tedious)
    2 notes on this issue (at least for me):
    1. this problem isn't just on Firefox, it's on every browser i go on (IE, Firefox, Safari, Opera) on both pc and mac
    (2)ONLY WordPress is doing this. as in, if i were to put paragraph breaks on any other page on my blog it will do the paragraph break. (general this tells me that the problem is, at least after trying to fix this problem for the longest time, is not in my css)

    the back of my head kinda thinks that it might be a compatibility problem between my theme and the current version of WordPress (because i never changed any of the theme files to match how they're coded for 2.3) but then that doesn't make sense to me because i never had that problem with past WP updates >>
    so all in all very confusing

  2. lordgryn
    Member
    Posted 4 years ago #

    Has this been resolved yet? I can't seem to find a solution. Everytime I publish or edit and save something all <p> and <br> tags are removed and my post looks like complete rubbish.

  3. moshu
    Member
    Posted 4 years ago #

    You have two [2] choices:
    1. use the wysiwyg animal and in that case do NOT try to put any html code in your posts. Period.
    2. turn it off for good (NOT SWITCHING BETWEEN Code/Visual) and use whatever code you want - it will be unaltered.

    Which one?

  4. gonzokid
    Member
    Posted 4 years ago #

    I have just started using WordPress, and I have come across the same issue with it auto deleting my <P> </P> from the "visual" view.

    It is VERY annoying. It means any time i need to alter a post, I have to do it AGAIN due to WordPress opening the visual view as default.

    Please please sort this problem out!!!!

  5. sbradford
    Member
    Posted 4 years ago #

    Be nice if your suggestions worked Moshu. I tried turning the visual editor off. And this happens in firefox too.

    Why is it so hard to accept that people are having a lot of trouble with this? WordPress is supposed to make blogging easier not harder-- or is that not the case?

    Because right now, easier would be to use Aquamacs to create pages from scratch and not do blogging at all.

  6. nikkey
    Member
    Posted 4 years ago #

    I agree completely with Sbradford.
    I am managing 5 blogs and in 4 (the most updated) I have the same problem (I have tried to fix it using IE, Opera, Firefox, deactivating all the plugins and changing theme).

    I figure two solutions for me:
    1 - Downgrade the wordpress's version
    2 - Change platform.

    The second one would be really a pity.
    I love wordpress and I think you guys have done really a great job. But you can't ask me just to swith off the WYSIWYG option, this is a no-solution.
    Thanks

  7. sbradford
    Member
    Posted 4 years ago #

    I turned off WYSIWYG completely and got this on my site

    I gave up and switched to blogger.

  8. hannaramos
    Member
    Posted 4 years ago #

    HEY!!!
    was having the same prob few minutes ago.. i rechecked my stylesheet and was able to find what's causing this problem :)

    check your stylesheet and look for the "p" tag..
    example below :
    my css used to be :
    p { margin: 0px; padding: 0px; }

    then i changed it to :
    p { margin: 0px; padding: 2px; }

    hope it'll work on yours too :)

  9. BunnyB
    Member
    Posted 4 years ago #

    I am also having this problem and it's making me nuts. I'm using Firefox on a Mac. I've tried turning off the visual editor and it still removes my paragraph breaks and messes up my AdSense code. Somebody please, please help us figure this out! (I couldn't find a problem in the stylesheet as suggested by the post above.)

  10. surelybwh
    Member
    Posted 4 years ago #

    For me, it really was a browser issue. I've been using Firefox for my blogs and was creating a new one today and was using Safari. I spent all afternoon trying to resolve it. Then I found this post and tried the new blog in Firefox. Problem solved.

  11. RunawayOctober
    Member
    Posted 4 years ago #

    I am having the same problem.

    When using the TINY MCE editor provided by WP it was ignoring all p div and br, though it wasn't stripping them from the code. This happens on Linux and PC machines regardless of IE, Firefox, or Konquerer.

    I switched to the FCK Editor (Which is so much better, btw) and the problem is only happening after images and videos.

    I've also tried switching themes and that seems to resolve the issue.

    My question is why do some of the "provided" WP themes have faulty coding in them?? Aren't they checked?

  12. GamerEdie
    Member
    Posted 4 years ago #

    I built my webpage this weekend on Safari and had no problem. Then TODAY I started getting horrible gobbly-gook (that's technical speak, my friends) when going back to re-edit some of my pages and posts. Started with <p> and </p> and </br> being stripped out. Then progressed to not even being able to use '<href>' links without completely destroying all the text.

    I did try Firefox tonight after spending two hours rewriting the same page over and over in Safari. Seems to have fixed it, but who knows at this point.

    Using 2.3.3 and PressRow 1.0 (one of the "recommended" themes inside WP... so YOU'D THINK it would work...)

    But really... this is apparently a serious issue. I have to say that the "official" replies on this thread are a little distressing. They seem to take the tone of "well, it's obvious a problem on YOUR end, not WP's. Go rewrite your code and uncheck this box and stand on your head and click your heels three times and it will work perfectly." If there's a MAJOR problem with editing posts with at least two and possibly three of the major browsers on the market, I'd expect that convoluted workarounds aren't exactly a "solution."

    And for the record, if you use the visual editor and then go back into the post to edit it, it strips out all that formatting too, so "use the visual editor" isn't a solution -- unless you never want to edit your posts after publishing.

    I mean, and I'm just asking here, if it's clear that WP and Safari and/or Firefox and/or IE aren't working with WP, shouldn't that be noted somewhere other than buried a forum? As in, a compatability warning when installing??

    Kinda defeats the purpose of "easy to use blogging tool," doesn't it?

  13. Elfebel
    Member
    Posted 4 years ago #

    Thank you very much hannaramos. Your solution worked like a charm!!

  14. FaithWalks Magazine
    Member
    Posted 4 years ago #

    Hey WP USERS:

    I found the solution to the "no paragraph break"...at least

    Use this string and "note" the "period" at the end of the "</br>" tag.

    EX:
    <p>your text yada yada</p>
    .

    I don't know "why or how"...but it works. Yet "none of the tags work in WP", i.e., "ul, li," etc.

    Check it out at my blog "within my online magazine", which reads and looks like print publications: FaithWalksOnWater MagazineABlog & Water Cafe

    And don't forget to check out FWOW Cafe e-TV!

    D.C. Pundit @
    FaithWalksOnWater Magazine Online

  15. mangthjik
    Member
    Posted 4 years ago #

    any one had solve this problem ?
    because i am just up grade to 2.5.1 but this problem still apear..
    please help me :)

    Regards

  16. archweb
    Member
    Posted 3 years ago #

    i solved it.
    to have a BR on your site you have to write in HTML section <br /> instead of <br /> or <br />
    it WORKS !

  17. Sionide
    Member
    Posted 3 years ago #

    hannaramos's solution worked for me, I thought it was a theme specific problem.. Quite annoying but a quick easy stylesheet fix. Thanks hannaramos

  18. unrater
    Member
    Posted 3 years ago #

    hi!!

    I solved this problem with the TinyMCE advanced, go to this thread and you'll see the solution:
    http://wordpress.org/support/topic/142936/page/2?replies=42#post-824276

    []

  19. ssmediaco
    Member
    Posted 3 years ago #

    I was in this hell as well. Turn off the "kitchen sink" then things appear to function normally with
    spacing.

  20. soggyindo
    Member
    Posted 3 years ago #

    I'm another person who thinks this is the most annoying thing about my beloved wordpress!
    i've had it happen on all sorts of versions of wordpress. on every browser you can imagine.
    • hannaramos's fix didn't work, as i didn't have that line of code to change
    • FaithWalks Magazine's (nice blog BTW) adding a dot after <p>your text yada yada</p>
    .
    still leaves you the problem of a floating dot...
    • i always used to add white - lines, but i'm worried about google penalizing "hidden" text (thinking it is black hat seo)
    • i've even added all white images in, which is a killer for bandwidth
    • archweb's "you have to write in HTML section
    instead of
    or
    " doesn't make any sense at all (same thing??)
    so, after all this knowledge, no solution!
    having some white space under your text shouldn't be such a hard problem, surely!
    less fancy theme previews and some basic
    tags that stick i say!

  21. Sazime
    Member
    Posted 3 years ago #

    I have this issue as well. I've read fix after fix, and nothing seems to work. It is a problem in the html and WYSIWYG. No matter what I do, if I want more than one space I have to use the "floating dot" method.

    What I don't get is why "auto formatting" like this even happens.

    Why does WP get rid of my
    tags when I insert more than one?

    Simple question, it seems like there should be a simple answer.

Topic Closed

This topic has been closed to new replies.

About this Topic