How To Set The Default WordPress Editor To HTML Mode

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:

  1. Log in to your WordPress Admin Dashboard:
  2. In your Dashboard, hover over ‘Appearance’ and select ‘Editor’:
  3. 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";') );
  4. Click on ‘Update File’.

The HTML Editor will now be the default instead of the Visual Editor on your WordPress Hosting

Tagged

,