Tagged: LayerSlider
You’ve now added a layerslider item to the admin bar and I would like to not have the (Advanced Layout Builder) in the Edit button. Can you please not add extra crap to the code. I know you’re trying to be helpful, but it’s just extra stuff that clogs up WordPress dashboard.
I don’t want to use more css code to hide these extra things you have added, please have a switch in the Theme Options page to turn off the extra settings so we don’t have to continue to add more garbage to our code for things you’re adding .. that no-one asked for.
Hey Michael,
I’ll share with the dev team.
Best regards,
Jordan Shannon
Hello, have you found a solution to disable the layerslider menu in the adminbar? THX in advanced. Best wishes, Tom
Hi THobbes,
Please try adding this code in functions.php in your child theme:
function remove_layerslider_menu( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'ab-ls-add-new' );
$wp_admin_bar->remove_node( 'ab-layerslider' );
$wp_admin_bar->remove_node( 'ab-layerslider-new' );
$wp_admin_bar->remove_node( 'ab-ls-recently-created' );
$wp_admin_bar->remove_node( 'ab-ls-recently-modified' );
}
add_action( 'admin_bar_menu', 'remove_layerslider_menu', 999 );
Hope it helps :)
Best regards,
Nikko