How to change the Page title of Dashboard

This customize is how to change the page title of Dashboard of admin screen.

 

 

Change Dashboard name

Change Dashboard name

 

 

Step1 Change the title of title tag.

 

This will change the title of the Dashboard.

 

 

Title Tag

Title Tag

 

Please write code for change to functions.php of your theme.

In this case is discrimination to the screen id of admin panel.

 

It looks like this.

 

Change Title Tag

Change Title Tag

 

However, the title of page does not change. This hook is only change the title tag.

So, next step will change the page title.

 

 

 

Step2 Change the title of page.

 

Please add the $title in global to change_dashboard_title function.

It $title is variable that using in the admin panel.

If you want to see more detail, please refer to the wp-admin/index.php.

 

Next, please add this code just before the return $admin_title.

 

It looks like this.

 

Change Page Title

Change Page Title

 

 

And the next step is to change the name of the side menu.

 

 

 

Step3 Change the menu name of side menus.

 

Please add this code to functions.php

 

It looks like this.

 

Change Sidemenu name

Change Sidemenu name

 

This is complete! 🙂

And full code is here.

 

 

 

If you want to change the other page name / menu name

 

This is a little caution. Because the title is completely different by the page / screen.

Please look at the code of the <h2> tag of the page name.

 

For example to Dashboard,

 

For example to Posts,

That is post type of label is called.

So if you want to change the page name, you need to change the post type label.

Following is possible to change the page name at previous code.

  • Dashboard
  • Media Library
  • Widgets
  • Plugins
  • Users
  • Tools
  • Settings

 

 

Leave a Reply

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

*