How To Modify WordPress Dashboard Without Plugin

Modify WordPress Dashboard without plugin

Today, I am going to provide you easy and quick steps to modify wordpress dashboard without plugin. Please follow below steps:

1. Hiding unwanted widget from wordpress dashboard

You can easily hide widgets from wordpress dashboard that you have no longer needed.

You have to add following code into your active theme's function.php file:

add_action('wp_dashboard_setup', 'custom_hide_widgets');
function custom_hide_widgets() {
    	global $wp_meta_boxes;
   	
//for Activity
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);
    
//for At Glance    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);    
}

This will hide Activity & At Glance from your wordpress dashboard.

2. Replace "Howdy" with your text in wordpress admin bar

By default in wordpress admin bar "Howdy" text is shown you can easily change it with your text. You have to add following code into your active theme's function.php file:

function replace_howdy_with_your_text( $wp_admin_bar ) {
	$account_info=$wp_admin_bar->get_node('my-account');
	$your_title = str_replace( 'Howdy,', 'Your Text', $account_info->title );
	$wp_admin_bar->add_node( array(
    	'id' => 'my-account',
    	'title' => $your_title,
	) );
}
add_filter( 'admin_bar_menu', 'replace_howdy_with_your_text', 25 );

Here we use admin_bar_menu filter to replace text.

3. Change wordpress dashboard footer text.

You can change wordpress dashboard footer text by your own text or link or other. You have to add following code into your active theme's function.php file:

 function custom_footer_admin_text () {
     	 echo "Your own text or link";
  }
  add_filter('admin_footer_text', 'custom_footer_admin_text');

Here we use admin_footer_text for change admin footer text. For link you need to use anchor tag (<a>).

4. Create your own Admin Color Scheme  

You can create you own admin color scheme for that you need to create css for your color scheme. Create a directory called admin-css into your active theme and add your css file in it.

Now you have to  add following code into your active theme's function.php file:

function custom_admin_scheme_css() {
    	wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/admin-css/custom_admin_scheme.css' );
  }
  add_action('admin_print_styles', 'custom_admin_scheme_css' );

Hope these steps helped you in all manners. Hire wordpress developer and Feel free to share your inputs/feedbacks.