Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents Elementor from loading #25

Open
nisbet-hubbard opened this issue Jun 14, 2024 · 1 comment
Open

Prevents Elementor from loading #25

nisbet-hubbard opened this issue Jun 14, 2024 · 1 comment

Comments

@nisbet-hubbard
Copy link

Just to report that this useful plugin conflicts with more recent versions of Elementor, although I suppose it’s no longer maintained?

@nisbet-hubbard
Copy link
Author

For those who can’t use the plugin because of this issue, and whose needs are mainly cosmetic, the following functions.php snippet serves the same purpose:

function remove_admin_bar ( $wp_admin_bar ) {
	$wp_admin_bar->remove_node( 'comments' );    
}
add_action( 'admin_bar_menu', 'remove_admin_bar', 999 );

function remove_menus (){
  remove_menu_page( 'edit.php' );                   //Posts
  remove_menu_page( 'edit-comments.php' );          //Comments 
}
add_action( 'admin_menu', 'remove_menus', 999 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant