Title: Remove &#8220;Edit With Elementor&#8221; from adminbar
Last modified: November 10, 2020

---

# Remove “Edit With Elementor” from adminbar

 *  Resolved [Anthony](https://wordpress.org/support/users/anthonyintertech/)
 * (@anthonyintertech)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/remove-edit-with-elementor-from-adminbar/)
 * Hi Elementor friends!
 * We have a client issue where we want **Editors**_ to be able to use Elementor
   on any page on the site __except_ the homepage.
 * We had created a function that up until recently worked fine. The only issue 
   we have right now is that the code that previously removed the “Edit with Elementor”
   from the frontend adminbar no longer works.
 * I think Elementor (in a recent update) now adds the menu items after the adminbar
   renders with javascript so `remove_menu` no longer seems to work (though continues
   to work fine removing other non-Elementor menu items)? Any ideas on how to hide
   it? This is a client requirement for us
 * Thanks much for your assistance.
 * This is the function we created that removed both the “Edit Page” link and the“
   Edit with Elementor” link from the admin bar. It still correctly removes “Edit
   Page”, but “Edit with Elementor” is no longer is removed. I also tried remove_node
   with no luck.
 *     ```
       add_action( 'wp_before_admin_bar_render', 'binaryfork_before_admin_bar_render', 999 ); 
       function binaryfork_before_admin_bar_render() {
       	global $wp_admin_bar;
       	$user = wp_get_current_user();
       	$roles = ( array ) $user->roles;
       	if( is_user_logged_in() && !empty($roles[0])) {
       		if ($roles[0] == "editor") {
       			if( is_front_page() ) {
       			$wp_admin_bar->remove_menu('elementor_edit_page');
       			$wp_admin_bar->remove_menu('edit');	
       			}		
       		}
       	}
       }
       ```
   
    -  This topic was modified 5 years, 7 months ago by [Anthony](https://wordpress.org/support/users/anthonyintertech/).

Viewing 1 replies (of 1 total)

 *  [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * (@saidaboukhadra)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/remove-edit-with-elementor-from-adminbar/#post-13878670)
 * Hello,
 * Please review this role manager doc:
 * [https://elementor.com/help/role-manager/](https://elementor.com/help/role-manager/)
 * Also you can remove it via WordPress Dashboard > Elementor > Settings > General
   >
 * Then remove the marks from the post types.
 * Regards,
    Said

Viewing 1 replies (of 1 total)

The topic ‘Remove “Edit With Elementor” from adminbar’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/remove-edit-with-elementor-from-adminbar/#post-13878670)
 * Status: resolved