In WordPress, the default editor is set as “Visual”. Many new bloggers prefer using visual mode as the interface is simple to handle. I mostly use “HTML” mode as it works perfect in preventing any unwanted characters and spacing, especially when writing code in posts. If you feel the same, then here is a code snippet for you to set “HTML” as the default editor.
Paste the below line of code in your theme’s functions.php file. Nothing more to do. Just save the changes. Hope you know that.
add_filter('wp_default_editor', create_function('', 'return "html";'));









Comments on this entry (2 comments)
Did you like this post? You can share your opinion with us! Simply click here.