How to Add Custom Dashboard Widgets in WordPress

Interactive Online > Blog  > CMS  > WordPress  > How to Add Custom Dashboard Widgets in WordPress

How to Add Custom Dashboard Widgets in WordPress

There are tons of new themes coming out for WordPress every day, but none of them seems to utilize this feature. WordPress developers should add custom dashboard widget with support information. In this article we will show you how you can customize dashboard widgets in WordPress.

How to Add Custom Dashboard Widgets in WordPress is a post from: WPBeginner which is not allowed to be copied on other sites.

Related posts:

  1. Adding a Custom Dashboard Logo in WordPress for Branding
  2. Embed Custom CSS in Your Single Posts with Custom Fields
  3. How to Create a Custom Page in WordPress


There are tons of new themes coming out for WordPress every day, but none of them seems to utilize this feature. WordPress developers should add custom dashboard widget with support information. In this article we will show you how you can customize dashboard widgets in WordPress.

Simply open your functions.php file and add the following code:

add_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="mailto:[email protected]">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>';
}

Remember to change the email and add other useful information.

This code can be very helpful when creating custom themes for clients.

Result:

Custom Dashboard Widgets in WordPress

Source: Jake Goldman’s Article at Smashing Magazine

How to Add Custom Dashboard Widgets in WordPress is a post from: WPBeginner which is not allowed to be copied on other sites.

Related posts:

  1. Adding a Custom Dashboard Logo in WordPress for Branding
  2. Embed Custom CSS in Your Single Posts with Custom Fields
  3. How to Create a Custom Page in WordPress

read more..
Free Website for Your Dental Practice
See why our dental practice websites exceed the features & value of your typcial dentist website.
  • No cookie-cutter websites
  • No duplicate content
  • Custom built with a unique look and feel
  • Unique content written by professional writers
  • Set yourself apart from other dentists
  • The key to your online success!
* we never share your e-mail with third parties.