WordPress.org

Ready to get started?Download WordPress

Forums

Keep WordPress from Inserting BR tags. (3 posts)

  1. pkulak
    Member
    Posted 8 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
    Member
    Posted 8 years ago #

    Check this thread for more info:
    http://wordpress.org/support/topic/62692

  3. syncbox
    Member
    Posted 8 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'
    ,'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

Topic Closed

This topic has been closed to new replies.

About this Topic