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
1answer
17 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", &...
0
votes
0answers
58 views

wp_before_admin_bar_render never called in front end

For some reasons, if a user is logged in and does not have administrator role, The toolbar does not displayed. I added this code : add_action( 'wp_before_admin_bar_render', array( '...
0
votes
1answer
8 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....
0
votes
0answers
9 views

Admin notices are not shown in save post hook with wp5

When saving the post, admin notices is not shown. Simplified code: add_action ( 'admin_notices', 'ltb_show_admin_notices' ); function ltb_show_admin_notices() { // The function is not called at ...
1
vote
0answers
12 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 ...
0
votes
1answer
32 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?
0
votes
0answers
10 views

Wordpress toolbar floats horizontally on Mobile

I am running a BuddyPress website. I noticed the WordPress toolbar floats horizontally on mobile but vertically on the Web. I have not made any change to it and I'm surprised why it is so. How can I ...
1
vote
1answer
19 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 ...
0
votes
1answer
50 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?
0
votes
2answers
85 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. ...
0
votes
0answers
25 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 ...
0
votes
1answer
130 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 ...
0
votes
0answers
66 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 ...
1
vote
1answer
147 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 ...
0
votes
0answers
37 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', '...
0
votes
1answer
104 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 ...
2
votes
2answers
378 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?
1
vote
1answer
32 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 ...
0
votes
1answer
267 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?
2
votes
4answers
107 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() ...
0
votes
0answers
57 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 ...
1
vote
1answer
23 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 ...
2
votes
2answers
64 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', ...
0
votes
1answer
390 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 ...
2
votes
2answers
38 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('...
0
votes
1answer
68 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 ...
0
votes
0answers
8 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?
0
votes
2answers
47 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. ...
0
votes
1answer
142 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 ...
0
votes
1answer
61 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 ...
0
votes
1answer
366 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 ...
0
votes
1answer
28 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 ...
0
votes
2answers
687 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 ...
0
votes
1answer
27 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? ...
1
vote
4answers
8k 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 (!...
1
vote
1answer
49 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 ...
1
vote
0answers
218 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 ...
1
vote
3answers
2k 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 ...
0
votes
0answers
291 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 ...
1
vote
2answers
3k 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 ...
-1
votes
1answer
35 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 "...
0
votes
0answers
947 views

Create custom admin bar menu items

I am using this code to create a custom menu in the admin bar. For some reason my menu items are nested in each other instead of having the #custom_menu as parent. Why is this happening? function ...
1
vote
1answer
673 views

How to set show admin bar front to true for all users?

I just wanted to know whether it is possible to set for all users show-admin_bar_front meta data to true. I've tried this to put those lines in functions but with no results : // Create the ...
0
votes
1answer
180 views

How to disable users to view Other pages

I have a membership website where my users can create their own page. I use below snippets in function.php to remove the options of published, trash etc. of other users and only show "mine". /** * ...
1
vote
1answer
296 views

Where is the admin bar instantiated?

There are so many resources on how to enable, disable, change and fix the admin bar, but per a question from a student, we just want to follow the path to how it's made. What we know: 1. The trail ...
0
votes
0answers
75 views

When admin is logged in, admin-bar-rtl.min.css is not loaded on website view (the admin-bar is shown in the footer without CSS)

When admin is logged in, the admin-bar on website view is shown in the footer without CSS. I checked the source against other websites & it seems like admin-bar-rtl.min.css is not loaded on my ...
0
votes
1answer
149 views

Remove admin bar “My Sites” link from contributor roll

I have a milti-site that is set up for contributors to author custom posts. I can't use css to modify the adminbar because it remover the links for all user rolls. How can I remove My Sites, Comment ...
0
votes
2answers
2k views

disable wp admin bar for customers logged in

I have a wordpress website, where i am providing customers with user name and password to access my shop. When a customer logs in, he can see the top wordpress admin bar as well. I dont want users ...
1
vote
1answer
796 views

Disable the “Skip to Toolbar” tabbing accessibility feature

Is there a WordPress setting or hook that I can use to disable the WordPress "Skip to Toolbar" accessibility feature? I'm referring to the small popup that appears when tabbing through form controls: ...
3
votes
1answer
7k views

Show admin bar only for some USERS roles

I have 4 users roles on my wordpress platform (role1, role2, role3, role4) I'm looking for to show front-end top bar only for Role1 Role2. how can i add a condition on this code to show it only for ...

1
2 3 4 5