WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I hide "Content" and "Discussion" element in the "Right Now" dashboard widget?

Here's a screenshot:

right now dashboard widget

share|improve this question

Here are two methods:

Method 1

You could remove the whole Right Now metabox from your dashboard:

function custom_dashboard() {
    // only remove it for non-admins
        remove_meta_box('dashboard_right_now', 'dashboard', 'core');

and then add another custom Right Now metabox with your custom code. You could for example check out the Wordpress function wp_dashboard_right_now() located in /wp-admin/includes/dashboard.php.

Method 2

You could hide the .table_content and .table_discussion parts via CSS:

function custom_css() {
        // only hide it for non-admins
        echo "<style>#dashboard_right_now .table_content, #dashboard_right_now .table_discussion {display:none !important;}</style>";

and the metabox will look similar to this one in your dashboard:

Custom Right Now

share|improve this answer
thank you very much!! – Ghinnersmee Mar 27 '13 at 19:44

You can click on the Screen Options in the top right of the screen, and uncheck them from the options list to disable them from your view.

share|improve this answer
thank you !!!!! – Ghinnersmee Mar 27 '13 at 19:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.