I found a solution.
1. In wp-admin/user-edit.php:
– replace “include( ABSPATH . ‘wp-admin/admin-header.php’);” with “include( ABSPATH . ‘wp-content/themes/mytheme/header.php’);”
– replace “include( ABSPATH . ‘wp-admin/admin-footer.php’);” with “include( ABSPATH . ‘wp-content/themes/mytheme/footer.php’);”
(I don’t know how can I call this from functions.php. Please help me Ninos!)
2. In functions.php add this for remove toolbar:
“if (!function_exists(‘disableAdminBar’)) {
function disableAdminBar(){
remove_action( ‘admin_footer’, ‘wp_admin_bar_render’, 1000 );
remove_action( ‘wp_footer’, ‘wp_admin_bar_render’, 1000 );
function remove_admin_bar_style_backend() {
echo ‘<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>’;}
add_filter(‘admin_head’,’remove_admin_bar_style_backend’);
function remove_admin_bar_style_frontend() {
echo ‘<style type=”text/css” media=”screen”>
html { margin-top: 0px !important; }
* html body { margin-top: 0px !important; }
</style>’;}
add_filter(‘wp_head’,’remove_admin_bar_style_frontend’, 99);}}
add_action(‘init’,’disableAdminBar’);”
I hope it’s OK.