In WordPress, there are two types of post editors namely Visual Editor and Text or HTML Editor. Usually, you can easily switch between both of these editors with a single click.
By default, the visual editor is the default post editor in WordPress. Sure, if you want to, you can easily disable the Visual Editor straight from your Profile page in the WordPress dashboard.
But if you are comfortable using the HTML editor, then setting the HTML editor as the default editor in WordPress is a pretty good thing as you don’t have to manually switch to the HTML text editor each and every time. So if you ever want to, here is how you can easily set HTML editor as the default post editor in WordPress.
Set HTML Editor as Default Editor
Setting the HTML editor as the default editor is pretty easy in WordPress, you don’t even need to install a plugin. In fact, all you have to do is add a little code snippet.
To do that, open your favorite FTP (File Transfer Protocol) client. Once the FTP client has been opened, navigate to your theme folder and then open the
After opening the functions file, add the below code at the end of the file and save and reupload the file.
// Set HTML Editor as Default Editor add_filter( 'wp_default_editor', create_function('', 'return "html";') );
From this point forward, your default post editor in WordPress will be the HTML editor.
If you ever want to revert back, simply remove the added code from the functions file or replace the above code with the below one and you are good to go.
// Set Visual Editor as Default Editor add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
That’s all there is to do and it is that simple to set HTML editor as the default post editor in WordPress. If you like this article, then do know how to automatically add text to your WordPress post editor. This is pretty helpful if you have some sentence that you use in all your articles, like asking visitors to subscribe or comment.
Do comment below sharing your thoughts and experiences about using the above method to set HTML editor as default post editor in WordPress.