• WordPress is adding line breaks on every carriage return on posts and pages. I use the HTML, not visual editor. And I’ve tried clicking the disable visual editor tick on my user page. You can see an example of the problem here:

    https://mrbiggs.com/wordpress/books/one-beastly-beast/

    Scroll down just a bit and you’ll see a series of thumbnails that use Highslide. The only way to get this to look right is to run the code for all the thumbs together, no spaces between the closing tags and the opening tags of the next thumb. This creates a mess that is difficult to edit. So I break each thumb up with a carriage return when editing the html. However, WP decided that what I want is a
    and sticks it in there. If you look at the source you can see that before each anchor is a <p> tag as well that I’m not entering.

    I thought HTML editor wasn’t supposed to add anything to the code. Anyone have any fix? I don’t recall WP doing this in older versions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mrbiggs

    (@mrbiggs)

    Update:
    After messing around with the page a bit, it seems to now have replaced some of the line breaks with <p> tags. This has basically the same effect, but now with even more unwanted markup.

    I went into the page edit page and manually deleted the carriage returns, saved the page, then went back in — again, with the HTML editor, NOT the visual editor — and carriage-returned the code so that I can make sense of it. And WordPress added the <p> tags.

    Anyone know why this occurs?

    Interesting – this was an issue in early versions of WordPress and Mac OS (suggestions to use Qumana abounded). What versions are you running and on what OS/platform are you seeing this?

    For the most part this should not be happening for you.

    Respect.

    Thread Starter mrbiggs

    (@mrbiggs)

    Version of WP is 2.7.1. Mac OS is 10.5.7.
    Like I said, I don’t recall this happening before v 2.7. I went through some of my older blog posts and don’t see extraneous <p> and <br /> tags.

    Thread Starter mrbiggs

    (@mrbiggs)

    Well I got around it in this instance by using the Highslide plug-in rather than the straight-up JS code. So the link above won’t show the problem any longer. But WP is still inserting <p> and <br /> where I do not want it. If anyone knows why, I’ll love you long time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP adding line breaks even without visual editor’ is closed to new replies.