add template
This commit is contained in:
@@ -53,6 +53,19 @@ Timber::$dirname = array( 'templates', 'views' );
|
||||
Timber::$autoescape = false;
|
||||
|
||||
|
||||
// REMOVE EDITOR
|
||||
function remove_editor() {
|
||||
remove_post_type_support(
|
||||
'page', 'editor'
|
||||
);
|
||||
remove_post_type_support(
|
||||
'post', 'editor'
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
add_action('admin_init', 'remove_editor');
|
||||
|
||||
/**
|
||||
* We're going to configure our theme inside of a subclass of Timber\Site
|
||||
* You can move this to its own file and include here via php's include("MySite.php")
|
||||
|
||||
Reference in New Issue
Block a user