Custom Dashboard CSS

/* Change WordPress dashboard CSS */ function custom_admin_styles() { echo ‘<style type=”text/css”>#wphead{background:#069}</style>’; } add_action(‘admin_head’, ‘custom_admin_styles’); function custom_admin_styles() {     echo ‘<style type=”text/css”>#wp-admin-bar-new-content{display:none;}</style>’;     echo ‘<style type=”text/css”>#wp-admin-bar-comments{display:none;}</style>’;     echo ‘<style type=”text/css”>#wp-admin-bar-wp-logo{display:none;}</style>’;     echo ‘<style type=”text/css”>#screen-meta-links{display:none;}</style>’; } You can add any changes to the css between the tags.

Read More

Remove unwanted dashboard items

This was already posted but it did not have the full list of items. Especially those annoying “incoming links!” add_action(‘wp_dashboard_setup’, ‘my_custom_dashboard_widgets’); function my_custom_dashboard_widgets() { global $wp_meta_boxes; //Right Now – Comments, Posts, Pages at a glance unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’]); //Recent Comments unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_recent_comments’]); //Incoming Links unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_incoming_links’]); //Plugins – Popular, New and Recently updated WordPress Plugins unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_plugins’]); //Wordpress Development Blog […]

Read More

Customize the Dashboard

add_action(‘wp_dashboard_setup’, ‘my_custom_dashboard_widgets’); function my_custom_dashboard_widgets() { global $wp_meta_boxes; Remove these dashboard widgets… unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_plugins’]); unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’]); unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_secondary’]); Add a custom widget called ‘Help and Support’ wp_add_dashboard_widget(‘custom_help_widget’, ‘Help and Support’, ‘custom_dashboard_help’); } This is the content for your custom widget function custom_dashboard_help() { echo ‘<p>Lorum ipsum delor sit amet et nunc</p>’; }

Read More