Keep WordPress from Inserting BR tags. (3 posts)

  1. pkulak
    Posted 10 years ago #

    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.

  2. WPChina
    Posted 10 years ago #

    Check this thread for more info:

  3. syncbox
    Posted 10 years ago #

    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'

    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


Topic Closed

This topic has been closed to new replies.

About this Topic