HOW TO REMOVED ADMIN NAV ON TOP WORDPRESS?

MrVeeto

Active member
Jul 27, 2019
324
128
43
36
Hi, i would like to know is there any options to we removed or change text on admin nav menu on here? FireShot Pro Screen Capture #001.png
 

VODA

Active member
Trusted Uploader
Feb 18, 2020
98
128
43
try adding in functions.php below code not sure if the remove_node trick is still working if not you can find a lot of wordpress admin plugin for customization

Code:
function remove_toolbar_items($wp_adminbar) {
      $wp_adminbar->remove_node('updates');
      $wp_adminbar->remove_node('comments');
    $wp_adminbar->remove_node('stats');
      $wp_adminbar->remove_node('cs-explain');
}
 
  • Like
Reactions: empromax

MrVeeto

Active member
Jul 27, 2019
324
128
43
36
try adding in functions.php below code not sure if the remove_node trick is still working if not you can find a lot of wordpress admin plugin for customization

Code:
function remove_toolbar_items($wp_adminbar) {
      $wp_adminbar->remove_node('updates');
      $wp_adminbar->remove_node('comments');
    $wp_adminbar->remove_node('stats');
      $wp_adminbar->remove_node('cs-explain');
}

How to know the certain url/text on the menu admin bar?
 

harry26

Member
Jan 7, 2019
131
22
18
India
You want to remove for temporary or you want to completely disable as other logged in users can't see it?
 

MrVeeto

Active member
Jul 27, 2019
324
128
43
36
You want to remove for temporary or you want to completely disable as other logged in users can't see it?

Completely disable for other logged in user privilages is more usefull if can. only admin can see it.
 

MrVeeto

Active member
Jul 27, 2019
324
128
43
36
I believe this bar only admin can see.

Question: are you giving your user admin role?

Ofcourse i don't give permission to my user to admin role. But the other roles with moderator, editor or more level than default user also can view it.
 

guguk

Well-known member
Jul 19, 2019
1,150
828
113
Ottoman Empire
Ofcourse i don't give permission to my user to admin role. But the other roles with moderator, editor or more level than default user also can view it.
if you have a lot users (mod, editor etc) and installing plugin will not any problem for you just install "admin menu editor pro" plugin and customize it.
Else,
if you want to disable admin bar on frontend for these user use this code:
Code:
add_action('after_setup_theme', 'guguk_bar_remover');
 
function guguk_bar_remover() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu