AW Designs Blog

Technical tips, observations, and opinions for computer newbies, developers, entrepreneurs, and anyone interested in technology. This blog also features common support questions I am often asked as the go-to "computer gal" amongst my friends, family, and colleagues. Feel free to leave a comment and ask me yours.

AW Designs Blog

Main menu

Skip to primary content
Skip to secondary content
  • Home

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
5

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 | 5 Replies

Subscribe

To receive blog updates by email, enter your email address:

Delivered by FeedBurner


Proudly powered by WordPress