How To Customize WordPress Dashboard

Whenever you log into your WordPress admin, the first thing that you see is your dashboard. This panel is a set, where all the collectibles are available and stored under one platform. Once you have looked in the dashboard and you will come to learn about everything, under one glance. Starting from latest WordPress news to the comments, and even making quick draft posts, everything can be managed under one single platform. If this dashboard, however, looks a bit disorganized to you, and you’d like to customize it according to your needs, this post is all about how to do it.

Go for the customized values:

Well, the dashboard of WordPress looks the same for almost all websites. It might be attractive, but that does not ooze out any personal style. Therefore, for adding that extra personal feel, it is mandatory to check on the dashboard customization services.
As defined from the name, the main function of this admin dashboard is to change the information placement and choice of news, as per the user’s demands. This is the perfect way to impress clients, who are looking for some personal styling in these dashboards. And with few simple steps, you can get the answer, right away.

Simple steps to follow:

There are practically three simple steps, which you need to follow, while customizing your WordPress dashboard. It starts with removing metaboxes, which are not necessary and might confuse the users. After that, you will come to learn about ways to move metabox to different positions on screen. And for the last step, you are always welcome to add some customized metaboxes for helping users in their searches.

  • Unwanted metaboxes and their removals:

You are not always in need of using all metaboxes. Some are literally not used,so you’d better remove them as soon as possible. And this step is mainly applicable to those users with a role just below that of an administrator. And to start this process, you have to review just like the user, and check out on their editing role. There are so many interesting notifications available in this dashboard. But for non WordPress users, such information is not useful. Moreover, if the site is not associated with pingbacks and comments, then these metaboxes are of no use, at all.
// remove unwanted dashboard widgets for relevant users

function wptutsplus_remove_dashboard_widgets() {

$user = wp_get_current_user();

if ( ! $user->has_cap( ‘manage_options’ ) ) {

remove_meta_box( ‘dashboard_recent_comments’, ‘dashboard’, ‘normal’ );

remove_meta_box( ‘dashboard_incoming_links’, ‘dashboard’, ‘normal’ );

remove_meta_box( ‘dashboard_quick_press’, ‘dashboard’, ‘side’ );

remove_meta_box( ‘dashboard_primary’, ‘dashboard’, ‘side’ );

remove_meta_box( ‘dashboard_secondary’, ‘dashboard’, ‘side’ );

}
}
add_action( ‘wp_dashboard_setup’, ‘wptutsplus_remove_dashboard_widgets’ );
Therefore, you need to move incoming links, current comments, WordPress blog, QuickPress and other sorts of WordPress news. You might even want to add a targeted plugin for removing these metaboxes for users, and not for administrators. For that, you need to know whether the user has the capability to work alongside administrators. And the ones, which they cannot understand, must be removed.

  • Dashboard metabox with proper movements:

After cleaning the dashboard from the unnecessary metaboxes, you might want to move the left overs to a proper position. It will help the entire dashboard to look a bit more relevant, by providing the prioritize metaboxes at the top. These metaboxes are the ones, which users need to use the most. For example, you can move the “right now” metabox to the right side of the screen.
// Move the ‘Right Now’ dashboard widget to the right hand side

function wptutsplus_move_dashboard_widget() {

$user = wp_get_current_user();

if ( ! $user->has_cap( ‘manage_options’ ) ) {

global $wp_meta_boxes;

$widget = $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’];

unset( $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’] );

$wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_right_now’] = $widget;

}
}
add_action( ‘wp_dashboard_setup’, ‘wptutsplus_move_dashboard_widget’ );
And you should not forget to add the major code in plugin region, for better functionality. Once you are through with the moving of metaboxes, you have to fill up the gap with some customized options.

  • New additions in the kitty:

As your dashboard came up with a vacant region, therefore; it is time for you to add some customized ones. And there are practically two simple steps, which you need to follow, for addressing this service.

  1.  For the first step, you have to use the “dashboard widget” for defining the parameters of the widget. And that calls for title, ID, callback function and other areas, which are defining contents. And for that, you can activate this through “setup” hook.
  2. After that, you have to write the mostly used callback function. It is used for defining the content of the said metabox.

// add new dashboard widgets

function wptutsplus_add_dashboard_widgets() {

wp_add_dashboard_widget( ‘wptutsplus_dashboard_welcome’, ‘Welcome’,
‘wptutsplus_add_welcome_widget’ );

wp_add_dashboard_widget( ‘wptutsplus_dashboard_links’, ‘Useful Links’, ‘wptutsplus_add_links_widget’ );
}

function wptutsplus_add_welcome_widget(){ ?>

This content management system lets you edit the pages and posts on your website.
Your site consists of the following content, which you can access via the menu on the left:

  • Pages – static pages which you can edit.
  • Posts – news or blog articles – you can edit these and add more.
  • Media – images and documents which you can upload via the Media menu on the left or within each post or page.

On each editing screen there are instructions to help you add and edit content.

Some links to resources which will help you manage your site:

add_action( ‘wp_dashboard_setup’, ‘wptutsplus_add_dashboard_widgets’ );

In case, you are planning to add metaboxes for all, then you do not have to work on user’s capabilities. You can even copy the code, which has been used in some of the earlier segments. There are certain interesting codes available, to be plugged into your plugins, for adding two metaboxes, at the same time to dashboard screen. That helps you to land up with customized WordPress dashboard easily.

Depends on your choice:

Whatever kind of metabox you want to add, it depends on you. Starting from links to training videos, there are loads of options available. You can even add link to site or blog, as per the requirements. So, make sure to follow the steps first, as that can help you in creating customized dashboard for WordPress channels.

Sunny Chawla is a Marketing Manager at AIS Technolabs– a Web-design and Development Company. Helping global businesses with unique and engaging tools for their business. He would love to share thoughts on psd to wordpress responsive ,web design and web development.

Google+ Comments

Sunny Chawla

Sunny Chawla is a Marketing Manager at AIS Technolabs– a Web-design and Development Company. Helping global businesses with unique and engaging tools for their business. He would love to share thoughts on psd to wordpress responsive ,web design and web development.