irislines web design
irislines web design

wordpress line breaks…

I was pasting in nice clean html code on Scott Kellogg’s new site and Word Press was providing me with a line break on every line of the paragraphs.  Not coded,  in html view, there were no <br /> tags — just short lines of text — much narrower than the stylesheet would allow.

I googled “pasting html into word press line breaks”  and instantly found a cure.

I had to modify some core php file in the /wp-includes/ folder  so I’ll have to remember this when upgrading.

In the file formatting.php

I had to find the line:

function wpautop($pee, $br = 1)

and change it to :

function wpautop($pee, $br = 0)

It worked!


IrisLines LLC
101 Washington Street
Brattleboro, VT 05301

802 257 7391