Help Desk

Possible to remove "News from Modern Tribe" dashboard widget?

  • Posts: 10 Topics: 3
    | Permalink

    Is there a way to remove the dashboard widget globally? Thanks.

    Posts: 443 Topics: 1 Answers: 54
    | Permalink

    Hello James, not sure what you mean by “globally” (other parts of the site where the dashboard widget shows? Or are you speaking of different widgets?), however, on your WordPress Dashboard, if you click on “Screen options” in the top right corner, you can uncheck the box that says “News from Modern Tribe.”

    Hope that helps! Let me know if this is what you are looking for.

    Posts: 10 Topics: 3
    | Permalink

    Thanks Joyce that is helpful but I was looking for something different (sorry was not clear). I am looking for not having it show up on the dashboard by default. For example, a new user registers on my site an logs into the admin area, I do not want them to see the ModernTribe news dashboard by default (not having to take any action – ie go to Screen Options).

    Posts: 443 Topics: 1 Answers: 54
    | Permalink

    Hi James,
    That is a tough one. Have you tried this setting: http://d.pr/i/xdfk
    I will ask the other team members if they know. I’m sure there is a plugin or a way to control all your Dashboard widgets out there – have you searched wordpress.org for anything yet?

    Posts: 443 Topics: 1 Answers: 54
    | Permalink
    Correct Answer

    Hello James! I found out this is all you need to do:

    Add this to the theme’s functions.php file:

    function disable_tribe_dashboard_widget() {
    remove_meta_box(‘tribe_dashboard_widget’, ‘dashboard’, ‘normal’);
    }
    add_action(‘admin_menu’, ‘disable_tribe_dashboard_widget’);

    Let me know if you need anything else with this.

    Posts: 10 Topics: 3
    | Permalink

    Hi Joyce,
    Thanks for your help on this. I have added this but unfortunately the widget still shows up. Perhaps I’m missing a step. This below is what my functions.php file for my theme looks like:

    Posts: 10 Topics: 3
    | Permalink

    //

    Posts: 10 Topics: 3
    | Permalink

    Screenshot of it here: http://cl.ly/3S1C0z230E3d1d1b0A1k

    Posts: 4021 Topics: 4 Answers: 763
    | Permalink

    Hi James,

    It looks like the single quotes got converted to apostrophes in the code. Please make sure they are actually single quotes like in the previous block of code in your functions.php file.

    – Jonah

    Posts: 19 Topics: 3 Answers: 1
    | Permalink

    annoying little buggers those apostrophes…

    Posts: 443 Topics: 1 Answers: 54
    | Permalink

    🙂

    Posts: 7 Topics: 2
    | Permalink

    The above didn’t work for me, however using the Dashboard Widgets API http://codex.wordpress.org/Dashboard_Widgets_API does:

    // Remove unwanted dashboard items
    function dmc_custom_dashboard_widgets() {
    global $wp_meta_boxes;
    // Tribe Dashboard widget
    unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘tribe_dashboard_widget’]);
    }
    add_action(‘wp_dashboard_setup’, ‘dmc_custom_dashboard_widgets’);

    Posts: 3443 Topics: 13 Answers: 199
    | Permalink

    Thanks for posting this so other users can benefit! Did that get everything working for you?

    ~Leah

    Posts: 1
    | Permalink

    I actually had problems with all solutions listed here. I’ve removed the Tribe dashboard widget in this way:

    /*
    * Remove “News from Modern Tribe” dashboard widget
    */
    function remove_tribe_dashboard_widget() {
    remove_meta_box( ‘tribe_dashboard_widget’, ‘dashboard’, ‘side’ );
    }
    add_action(‘wp_dashboard_setup’, ‘remove_tribe_dashboard_widget’ );

    Posts: 3443 Topics: 13 Answers: 199
    | Permalink

    Hi ereckers,

    The plugin has changed a great deal since 2012 so I’m not surprised these solutions here didn’t work. I’m glad you found something that would work!

    Best,

    Leah