• I use returns in HTML to help quickly identify sections of code.

    WordPress converts all my returns into line breaks.

    Is there any way to disable this?

    I’ve done some searching for a solution but all of the hacks I found are outdated or don’t seem to work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you talking about whilst editing a post or page or whilst creating a php template?

    Thread Starter JCEtheredge

    (@jcetheredge)

    Editing a post or page in the wordpress editor. I want to be able to write something like this:

    <img src=”https://image1.jpg”&gt;
    <img src=”https://image2.jpg”&gt;
    <img src=”https://image3.jpg”&gt;

    And have each image be on the same line like normal html.

    Instead WordPress will interpret each of the returns in the code as line breaks on the page/post, causing each image to appear on a different line.

    I need WordPress to behave like a normal html editor and NOT convert any of my carriage returns. When I want a line break, I’ll use the tag. Any help is immensely appreciated.

    Have you tried placing each image in a div with float:left applied to it? Or there’s this solution with an example here.

    How WordPress converts your returns ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable returns line breaks’ is closed to new replies.