Home › Forums › Calendar Products › Events Calendar PRO › Possible to remove "News from Modern Tribe" dashboard widget?
- This topic has 14 replies, 7 voices, and was last updated 11 years, 7 months ago by
Leah.
-
AuthorPosts
-
June 23, 2012 at 12:14 pm #21112
James
MemberIs there a way to remove the dashboard widget globally? Thanks.
June 23, 2012 at 11:31 pm #21120Joyce Grace
MemberHello 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.
June 24, 2012 at 4:07 am #21125James
MemberThanks 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).
June 24, 2012 at 5:32 am #21126Joyce Grace
MemberHi 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?June 26, 2012 at 9:17 am #21174Joyce Grace
MemberHello 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.
June 27, 2012 at 5:26 pm #21269James
MemberHi 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:June 27, 2012 at 5:26 pm #21270James
Member//
June 27, 2012 at 5:27 pm #21271James
MemberScreenshot of it here: http://cl.ly/3S1C0z230E3d1d1b0A1k
June 28, 2012 at 8:48 am #21284Jonah
ParticipantHi 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
June 28, 2012 at 12:41 pm #21296Torstein
Participantannoying little buggers those apostrophes…
June 28, 2012 at 11:06 pm #21314Joyce Grace
Member🙂
October 9, 2012 at 5:54 pm #26396David
ParticipantThe 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’);October 11, 2012 at 2:07 pm #26509Leah
MemberThanks for posting this so other users can benefit! Did that get everything working for you?
~Leah
September 4, 2014 at 3:26 pm #722764ereckers
ParticipantI 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’ );September 5, 2014 at 10:08 am #724875Leah
MemberHi 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
-
AuthorPosts
- The topic ‘Possible to remove "News from Modern Tribe" dashboard widget?’ is closed to new replies.
