• pkulak

    (@pkulak)


    Is there any way to keep wordpress from inserting BR tags? It’s really annoying to have to have NO new lines in my entire post just to keep my blog from peppering it with hard line breaks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • WPChina

    (@wordpresschina)

    Check this thread for more info:
    https://www.ads-software.com/support/topic/62692

    syncbox

    (@syncbox)

    Here you go… your question (and those of others) prompted me to deal with the same issues, so I thought I’d post my solution here:

    1) I am NOT using the WYSIWYG interface (just the one with quick tags)
    2) backed up the quicktags.js file in wp-includes/js/ folder
    3) opened quicktags.js (I used Dreamweaver 8 for this, but textpad or simpletext or similar should work) and added just below the similar code that adds the ul tag

    edButtons[edButtons.length] =
    new edButton('ed_p'
    ,'p'
    ,'n'
    ,'nn'
    ,'u'
    );

    now the client/user can first click the p quicktag, add content, the at the end, click the toggled /p quicktag.

    tags GONE!

    btw, this is using wp 2

    hth

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Keep WordPress from Inserting BR tags.’ is closed to new replies.