Tired of all those Elementor admin dashboard widgets?

Elementor is known for shamelessly plugging its products and services by intruding on the admin dashboard. Starting somewhere with Elementor version 4, things got worse.

Tired of seeing that crap? A simple edit to your functions.php file will remove the offending widgets. This will work in either the theme’s functions.php file, or the child theme’s functions.php file. Absent a compelling reason, you should ALWAYS use a child theme. Below is the magic code:

/**
 * Remove ALL Elementor dashboard widgets.
 */
function remove_all_elementor_dashboard_widgets() {
    $widgets = array(
        'elementor-manage-dashboard',
        'elementor_overview_widget',
        'e-dashboard-overview',
    );

    foreach ($widgets as $widget) {
        foreach (array('normal', 'side', 'column3', 'column4') as $context) {
            remove_meta_box($widget, 'dashboard', $context);
        }
    }
}
add_action('wp_dashboard_setup', 'remove_all_elementor_dashboard_widgets', 999);

Enjoy a cleaner dashboard!

Scroll to Top