Questions tagged [admin-bar]

The Admin Bar (respectively Toolbar since WordPress 3.3) is the dark band at the top of each site. It is only visible for signed in users in order to quick-administer the site via quick-links.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Function _admin_bar_bump_cb is deprecated since version 6.4.0

I am getting the following error message since 6.4.0: Function _admin_bar_bump_cb is deprecated since version 6.4.0 However I am not using _admin_bar_bump_cb in any theme/plugins. debug_backtrace() ...
RafaSashi's user avatar
  • 447
0 votes
1 answer
34 views

show_admin_bar filter not called inside plugin class

I have this code inside my plugin class, what I want to achive is to hide the admin bar to non admin users and custom roles of my wp setup function hide_admin_bar() { if( !...
ICTDEV's user avatar
  • 113
0 votes
0 answers
29 views

User can see and enter the Wordpress Admin without login

I have some users reporting to me that they can see the admin bar and also they can enter the admin panel of the website without login in. I'm not sure how this is possible and I'm trying to find a ...
Paulo Brás's user avatar
0 votes
1 answer
22 views

Adding more links to the tool bar

I added one link to the tool bar, how can I modify the code in order to have more links? function add_link_to_admin_bar($admin_bar) { $args = array( 'parent' => 'site-name', 'id' => '...
Andrea Sacconi's user avatar
1 vote
1 answer
34 views

Admin menu link with variable

I used this function to display a log out link below the home icon. But how could I put a variable, for instance the current username, on that link to show a profile page? The function is: ...
markseinto's user avatar
0 votes
1 answer
213 views

How to make an admin plugin menu page go full screen?

I'm building a plugin that contains a simple editor for a particular file format. This will only be accessible in the admin menu's for the plugin, no frontend access. I've started looking at the ...
AutoBaker's user avatar
  • 151
0 votes
1 answer
249 views

custom filtering admin columns

i'm trying to add custom filters to a CPT job-offer, for example, i'm starting by locations. the filters works fine except when i try to filter by all locations. this is my code function ...
Soufiane Nda's user avatar
0 votes
1 answer
32 views

Different Admin language

We are running our WP site in Hungarian but nobody in our team understands this language. We successfully changed admin backend language to our native language but not everything changed. We are still ...
Vlado's user avatar
  • 113
0 votes
0 answers
473 views

Creating an admin button that when clicked shows a popup form

I am creating a custom plugin to add a button to the buttons panel when editing a post or page in the classic editor. I have no trouble adding a button to the panel, but am unsure of the best way to ...
Johnathan's user avatar
0 votes
1 answer
527 views

Top admin tool bar not displaying for "Editor" user role

To handle user role permissions - I decided that not all of 50 users should have Administrative roles - Most of our user are "Editors" and so I switched them from an Administrative role to ...
jontronics's user avatar
0 votes
1 answer
21 views

Where is admin bar supposed to appear? [closed]

Where in the page's HTML is the admin bar supposed to appear? On my blog it is added to the footer section, with the result being that there is a gap above it when viewing the blog on mobile phones. (...
posfan12's user avatar
  • 117
0 votes
1 answer
347 views

WordPress Admin bar missing from custom theme

I'm working on a WP site which has a custom theme built from scratch and I can't seem to figure out how to get the Admin Bar to appear when viewing the public site. The themes footer.php file has the ...
user1589375's user avatar
0 votes
1 answer
101 views

How to Find The Email of a WP Admin Account

I recently started some freelance work, but the credentials my client gave me seem to have "Author" privileges at best. The section of the WP dashboard that usually has "Users", &...
James's user avatar
  • 111
0 votes
1 answer
193 views

Weird white space in admin area

I have had this weird whitespace appear multiple times on multiple sites. By "appear" I mean, it wasn't there one day, then it was. I am the only admin on these sites, which are in the cloud....
John Dee's user avatar
  • 503
1 vote
0 answers
112 views

Set different custom menu items for different user roles

I have added some custom menu using add-menu_page and it is working perfectly with the default administrator admin bar. But when I log in to different user roles, they are not showing. My question is ...
Avijit Palit's user avatar
0 votes
1 answer
183 views

Show admin menu and toolbar in admin post page

Is there a way to still show the admin toolbar and/or the main wordpress admin menu in the admin post page?
Marc's user avatar
  • 347
1 vote
1 answer
100 views

What determines whether admin toolbar is shown to a logged-in user?

By default, Wordpress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors. What determines whether admin toolbar is shown a logged-in user? I am ...
ronnefeldt's user avatar
0 votes
2 answers
572 views

Adding Notification Bubble on Admin Top Bar

How can I add a Notification bubble for Pending/On Hold/Processing order on Admin Top Bar?
ashik4u's user avatar
  • 17
0 votes
2 answers
749 views

Why do you add wp_footer() in footer file to add an admin bar in the top of the page?

Adding Code in the footer to place an admin bar at the top of the page seems extremely unintuitive. Even using the word wp_footer opposed to something like wp_header to add a header seems awkward. ...
LeeMatt3000's user avatar
0 votes
0 answers
123 views

Hook into 'admin_url' but only on Mysites admin bar menu

I'd like to alter admin url only inside "My Sites" admin bar menu.. I tried this filter: add_filter( 'admin_url', function( $url, $path, $blog_id ){ return $url . "str" }); but when I do that it ...
Kresimir Pendic's user avatar
0 votes
1 answer
278 views

Modify Contextual Help

Currently I have searched a lot of pages and information covering the contextual help tab (much like here:: 50787, 51861, 77308. Search term:: centextual help), and while there are many useful bits ...
John's user avatar
  • 1
0 votes
0 answers
166 views

How to change username in wp admin bar

on the wp admin bar you want users to appear automatically after entering their first name and last name. I mean, name and last name in the upper right corner. How can I do this? As you can see in the ...
H.c.K's user avatar
  • 1
1 vote
1 answer
308 views

Remove All in One Pack from the admin bar

Hello I want to remove All in One Pack from the admin bar. I can remove anything else but it. I have already removed other things like update from the admin bar using this method Get the menu's id ...
Maher Aldous's user avatar
0 votes
0 answers
62 views

customize admin bar (desktop+ responsive)

I was trying to customize the admin bar a bit by adding an extra logo, and showing the bar to all users(even non registered ones). Here's the code from my plugin. add_filter( 'show_admin_bar', '...
user206904's user avatar
1 vote
1 answer
451 views

nginx-fastcgi caching causes admin bar to dissapear

I have an issue with wordpress admin bar and nginx-fastcgi configuration. When I enable the fastcgi caching then the admin bar dissapear on some pages and in addition, there are few other issues with ...
Moshe's user avatar
  • 13
2 votes
2 answers
1k views

How to Add a Link to the Drop-Down User Menu in the Admin Bar?

I need to add a link to the drop-down user menu in the admin bar. Is there a hook or function for this?
user avatar
1 vote
1 answer
39 views

Hide admin bar by default

To hide the admin bar for a user, it is possible to toggle off the checkbox 'toolbar' in personal options for each user. But when a new user is created to the website the checkbox 'toolbar' is ...
darixd's user avatar
  • 11
0 votes
1 answer
660 views

how to hide top bar button on /wp-admin/edit.php

On the page /wp-admin/edit.php there is some buttons on the top bar "website name" "add" and "show post" i want to hide these buttons completely. How would i go about doing that?
christopher's user avatar
2 votes
4 answers
248 views

Hide admin bar on all pages except homepage

I am trying to hide WordPress admin bar from all pages except the home page. I added the following CODE in the theme's functions.php file, but it hides the admin bar on all pages: if ( ! is_single() ...
Badan's user avatar
  • 225
0 votes
0 answers
152 views

WP Admin Bar transparent on some pages (.screen-reader-shortcut)

I have an issue where the WP Admin Bar is transparent on some pages on the site. It's there and all the links are clickable, however, it is not viable. I am using a child version of the Divi Theme ...
Ashley Preen's user avatar
1 vote
1 answer
41 views

Set anchor target for admin bar nodes

I'm using the snippet from Open Admin bar "Visit site" in a new window which works perfectly on the node I specify. I need to adapt this to include all of the sub-nodes, which are ...
Jarod Thornton's user avatar
2 votes
2 answers
181 views

Display $pagenow error notice on all admin pages

I need to show my client error message on all admin pages. I have the following code, that adds a custom notice only on the admin dashboard page: add_action('admin_bar_menu', 'custom_toolbar_link2', ...
Juraj's user avatar
  • 144
0 votes
1 answer
926 views

Access to "My Site" is missing from the admin bar

You know there´s a direct access to every wordpress site right on the left side of the admin bar (or tool bar) once you get access to the wp dashboard which is intended to connect your website backend ...
Lowry_1982's user avatar
2 votes
2 answers
444 views

Hide admin tool bar from back end dashboard [duplicate]

How do we hide the admin toolbar from the back end dashboard? We can hide the toolbar when viewing the website with the below code but we want to also hide it from back end? add_filter('...
user3022041's user avatar
0 votes
1 answer
180 views

require/include php file in add_menu()

I'm creating a custom WP Admin Bar menu item with custom HTML inside the dropdowns. Referring to this: https://codex.wordpress.org/Class_Reference/WP_Admin_Bar/add_menu the HTML i want to use is ...
Charlie Wedel's user avatar
0 votes
0 answers
13 views

How to add Mark as private to WordPress Admin Bar for Posts

I want to add a "Mark as private" or "Make it private" menu to WordPress Admin Bar in front-end. Is there any way to achieve this?
Ashwin's user avatar
  • 1
0 votes
2 answers
60 views

Admin bar default color scheme for nonregistered/nonlogged users

I have disabled the registered users to select the admin color scheme as I want all of them to use the 'Coffee' scheme. I have also made the 'Coffee' color scheme the default one for registered users. ...
kr3t3n's user avatar
  • 103
0 votes
1 answer
331 views

SOLVED - $wp_admin_bar and AJAX calls

Something weird is happening in my class. Basically I'm trying to manipulate the $wp_admin_bar through AJAX but when I receive the response I get a NULL value. Although debugging the global when my ...
middlelady's user avatar
0 votes
1 answer
145 views

Admin Bar Acting Up

my admin bar was randomly gone. I ddn't notice at first but I installed BuddyPress and was thinking maybe it was due to this and their specific admin bar stats for guests etc. I de-activated ...
user153341's user avatar
0 votes
1 answer
927 views

How to remove logged user profile href link

I have a requirement and the requirement was, I need to remove some menu options from the front end WordPress admin bar after a user logged in. I have achieved almost all. Now I stuck up with the ...
user3408779's user avatar
0 votes
1 answer
59 views

Admin Bar - Customizer Label Change

I'm desperately trying to find out the best way to change the label "Customize" in the admin bar on the front end to "Customize Theme." Have tried just about everything with no luck. Any help would ...
Clyde's user avatar
  • 1
1 vote
2 answers
2k views

Setting proper query for multiple custom admin filters

I am adding custom admin filters for my custom post types. I am a bit confused about how to go with the parse_query filter in order to have my posts filtered based on 2 or more filters. Initially for ...
FFrewin's user avatar
  • 228
0 votes
1 answer
156 views

Show admin bar to editors with Buddypres

Hi I am trying to show admin bar to editors, but is not working. I am using Buddypress pluging. I dont know if this is the reason but I cant show admin bar for editors and admin. Anybody can help me? ...
Jesus García Lopera's user avatar
4 votes
6 answers
14k views

Remove admin bar for subscribers

I have a membership site. I need to disable the admin bar for the subscribers. I have used this code below: add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!...
Jitendra Mishra's user avatar
1 vote
1 answer
73 views

Pure CSS to "float" to the right the number of children of an admin_bar child node

I've added an admin_bar node. Each item in that node has a variable number of children. I want to display the number of children for each item "floated" to the right of the item's title (with some ...
Paul 'Sparrow Hawk' Biron's user avatar
1 vote
0 answers
386 views

Using an SVG icon for an Admin menu bar item

I'm trying to add a menu item to the admin top bar that has an icon. I'm adding the menu item using the following code: $iconSVG = '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC ...
Rebecca's user avatar
  • 113
1 vote
3 answers
4k views

Where is this inline CSS code [closed]

Where is this CSS code? I mean the margin-top: 46px !important!; I need to change it to 1px to rid of top margin. But i didn't found it in any theme's files. Note: I have searched the texts in all ...
return's user avatar
  • 119
0 votes
0 answers
333 views

missing admin bar and widget in a template

I do not know why I can not get the admin login bar (when I'm logged in) and why two widgets disappeared in the footer, knowing that the problem only occurred on one page template of the site that I'm ...
Frenchy35's user avatar
1 vote
2 answers
5k views

Wordpress Admin Bar Covering & Overlapping Fixed Menu Header [closed]

I am having a problem with the Wordpress Admin bar covering and overlapping my fixed menu header. The theme originally did not have a fixed menu header but I edited the CSS to add one. Also, I added ...
BlackTigerSoju's user avatar
-1 votes
1 answer
37 views

Why do my posts look like they are in "admin editing mode"?

I have created a wordpress blog. But when I on my created website and click on a link that leads to one of my posts, I do get to that post, but with the following problem: At the top I see this grey "...
Anton Rodenhauser's user avatar

1
2 3 4 5