How To Set The Default WordPress Editor To HTML Mode

Posted on 04/12/2012 by Neil Skoglund

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.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© Copyright 2019 FreshSites Limited. Registered in England and Wales no. 7812509
Website Design by Pyxal
How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites How To Set The Default WordPress Editor To HTML Mode | FreshSites