AW Designs LLC

Web Design, Development & Consulting by Allison Wong

AW Designs LLC

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Blog
  • Race and Rant
  • Shop Amazon

Tag Archives: Visual Editor

2 Magical Lines to Turn the WordPress HTML Editor into a real HTML Editor

Posted on February 4, 2011 by riyana

All WordPress developers will know that the HTML editor inside WordPress is a complete joke. It rearranges everything, closes tags, and mangles all your code. This is due to 2 built-in WordPress modules, Auto P and Texturize. The 2 magical lines that will disable these modules and turn the HTML editor into a normal, functioning, pure HTML editor are these:

Open the theme’s functions.php file. Inside the PHP code, put:

[code]
remove_filter (‘the_content’, ‘wpautop’);
remove_filter(‘the_content’, ‘wptexturize’);
[/code]

That’s it! By the way, to turn the Visual Editor off, go to your User Profile and click the checkbox at the top.

Posted in Uncategorized | Tagged Checkbox, Developers, Editor Html, Html Editor, Joke, Php Code, Php File, User Profile, Visual Editor

Recent Posts

  • Shop through my Amazon link
  • WordPress migration tips
  • Basic Windows command line prompts
  • Printers not showing up in Windows 8
  • Laptop Safety Tips

Recent Comments

  • Valerie Breen on How to unlock touchpad on Acer Aspire 5532 laptop
  • g.man on Editing ALL rows in MS SQL Server Management Studio 2008
  • Nicole on How to export filenames into a text file
  • Julian on How to export filenames into a text file
  • Elizabeth on How to export filenames into a text file
Proudly powered by WordPress