Removing Items From the Admin Bar
-
Hello,
I have way too many items on my Admin Bar, that overlap onto the site.
So I’ve tried adding this to functions.php file (GeneratePress child theme) :
function remove_toolbar_items($wp_adminbar) { $wp_adminbar->remove_node('wp-admin-bar-updates'); $wp_adminbar->remove_node('wp-admin-bar-comments'); $wp_adminbar->remove_node('wp-admin-bar-stats'); $wp_adminbar->remove_node('wp-admin-bar-cs-explain'); } add_action('admin_bar_menu', 'remove_toolbar_items', 999);
But it did not change anything,
Any idea of what might have cause the problem?
Thanks in advance,
v
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing Items From the Admin Bar’ is closed to new replies.