Skip to content

August 4, 2010

7

Remove br Tag in Text Area WordPress Post

How to remove <br /> line break tag automatically displayed inside a textarea code in a WordPress post. This tips apply to self-hosted WordPress blog only.  This problem occur in WordPress version 2.7 to 3.0

If you experience the same problem here is how to fix it

CONTENTS

  1. Install remove unwanted HTML from textarea tags Plugins
  2. How to Preserve Codes inside Textarea in WordPress Post


I. Install Remove <br /> tag from Textarea Plugins

  1. Download this free plugin called WordPress plugin to remove unwanted HTML from textarea tags
  2. Unzip it
  3. Upload the php file to wp plugins directory using Filezilla FTP Client.
  4. Activate it in WordPress admin. Done.

Note: Easy plugins installation cannot be done here because the plugins is not in zip file.


II. How to Post Codes inside Text Area
Everytime you want to post/write a code and want it to appear as is in a WordPress posts, post it in HTML mode.

  1. After login -> Posts -> Add New
  2. Click HTML -> write <textarea> your codes here </textarea> (do not click Visual)
  3. Publish. Done. See screenshot below:how to create textarea in wordpress post without br

7 Comments Post a comment
  1. Aug 4 2010

    Unfortunately, I’m no longer on WordPress, mas Fatih, but I also did the same thing on my Blogger blog: removing the br tag.

    Reply
  2. Aug 4 2010

    another plugin? i think my disk space already full loaded now ;)

    Reply
  3. Aug 4 2010

    Coba dulu ahhh… :-)

    Reply
  4. Aug 4 2010

    Thank you my brother .. your theme is beautiful, and also rare .. Regards

    Reply
  5. Aug 6 2010

    thanks for this tutorial

    Reply
  6. A simple tutorial but very useful :-)

    Reply
  7. Jan 1 2011

    Hm.. the tip #2 doesn’t work properly.. when you input the HTML code inside textarea tags you’ll find many unwanted white spaces appear..

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments