How to Add Custom Dashboard Widgets in WordPress?


Are you searching for a way to add custom dashboard widgets in WordPress?

The custom dashboard allows you to choose the widgets and manage them in your own way. It grand all the dashboard control power in your hand. You can easily create and remove widgets accordingly. Also, you can display various links based on WordPress.

Furthermore, this allows you to create a client dashboard enabling you to replace the default plugins with your self-customized text, icons, etc. The widgets you add are not permanent. These are replaceable depending upon the situation and the way you work with it.

Permits easy access to a dashboard with many subcategories as well. In addition to this, you can add new links in the dashboard area. Here we have mentioned the easiest way to add custom widgets to your dashboard. 

Add Custom Dashboard Widgets Using Code

This is the shortest and easiest way to work with. As you know, a small mistake in codding causes risks to your website. So, be careful while adding codes into your function.php file or a site-specific plugin.

Code Snippets is the plugin that helps you to add codes without having fear of website collapse. It adds the custom code as well as saves the system from breakdown. Furthermore, it keeps the track of any snippet you add to your site. 

iYou need to follow the following steps:

  • Install and activate Code Snippets plugins.
Add custom dashboard widgets.
  • Navigate to Snippets >> Add New in the dashboard.
Add custom dashboard widgets.
  • All you need to do is copy the following code and paste it into your new snippet below the Code area.
1234567891011add_action(‘wp_dashboard_setup’, ‘my_custom_dashboard_widgets’);  function my_custom_dashboard_widgets() {global $wp_meta_boxes; wp_add_dashboard_widget(‘custom_help_widget’, ‘Theme Support’, ‘custom_dashboard_help’);} function custom_dashboard_help() {echo ‘<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href=””>here</a>. For WordPress Tutorials visit: <a href=”” target=”_blank”>wphowtopress</a></p>’;}

Don’t forget to change the mail addresses well as other information. Also, save the changes and activate the code else it will not function.

Add custom dashboard widgets.
  • Lastly, here is the preview of the dashboard:
Add custom dashboard widgets.

Hence, in this way you have successfully added custom dashboard widgets in WordPress.

Wrapping up

We hope the article was useful for you and solved all your confusion. Also, check out our article “How to Disable Unwanted Widgets in WordPress?” for better knowledge about WordPress.


Please enter your comment!
Please enter your name here