Using the Visual Editor for creating or editing posts in WordPress is quick and easy, but if you prefer to write your own HTML in your posts, switching to the HTML editor every time you create a new post or edit a post can be annoying, but with our simple guide below you can change the default editor to be the HTML editor:
- Log in to your WordPress Admin Dashboard:
- In your Dashboard, hover over ‘Appearance’ and select ‘Editor’:
- At the right, select ‘Theme Functions’ (functions.php) Once the editor loads, insert the following code:
add_filter( 'wp_default_editor', create_function('', 'return "html";') );
- Click on ‘Update File’.
The HTML Editor will now be the default instead of the Visual Editor on your WordPress Hosting