All Questions
Tagged with admin-menu admin-bar
25 questions
1
vote
1
answer
49
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:
...
0
votes
1
answer
403
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 ...
0
votes
1
answer
35
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 ...
0
votes
0
answers
585
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 ...
0
votes
2
answers
372
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....
1
vote
0
answers
139
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
1
answer
267
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?
1
vote
1
answer
345
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 ...
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?
0
votes
1
answer
223
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
0
answers
542
views
How to remove an item from menu bar's +New menu based on User role
I want to hide / remove a particular menu item from +New menu on admin menu bar based on specific user role. I referred to this post and tried what is suggested here but for me it did not work.
I ...
3
votes
2
answers
6k
views
Adding a menu item in the admin bar
I would like to add a new menu item in the admin bar. So far, I have done the following:
function add_book_menu_item ($wp_admin_bar) {
$args = array (
'id' => 'book',
...
5
votes
2
answers
951
views
Add visit site to your toolbar instead of being in the dropdown
I'm looking for a way to move the "Visit Site" link from drop-down and add it to the main toolbar, just like in the image shown below:
0
votes
1
answer
49
views
How can I place a page link to the sidebar admin bar?
Im trying to create a function that place my page link http://mypage.com/mypage in the Admin Sidebar, not in the top Admin Bar like the code bellow does know.
function toolbar_link_to_my_page( $...
0
votes
1
answer
182
views
How can I modify text in admin bar?
I am looking to change 'register' to 'join' in the wp admin bar for logged out users. How can this be achieved?
0
votes
2
answers
135
views
How can a left and right margin be added to the admin bar without access to "...wp-includes/admin-bar.php"?
I do not have access to "wp-includes/admin-bar.php" due to security restrictions placed by my host, they have advised me to use css stylesheets which I am not familiar with.
I am looking to add a ...
0
votes
2
answers
598
views
How to include the admin bar?
I'm working on a plugin which needs a custom Preview page. In this page i call the neccessary wp functions(wp-load.php & wp-admin/includes/admin.php).
The problem is, that the admin bar is not ...
1
vote
3
answers
5k
views
Hide widgets/plugins from dashboard
I have two plugins in the dashboard, SEO Wordpress and Custom Content Type Manager, and for security reasons I want to hide these from dashboard. How to do that?
I tried to hide the SEO Wordpress ...
6
votes
2
answers
4k
views
Edit specific nodes in WP_Admin_Bar
Is it easily possible to edit links in the WP_Admin_Bar global $wp_admin_bar instance?
3
votes
2
answers
1k
views
Admin pages have no content
Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, ...
3
votes
3
answers
2k
views
How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
0
votes
2
answers
210
views
How to add admin bar only page?
I successfully managed to create admin bar item using this:
add_action('admin_bar_menu', 'toolbar_link_to_mypage', 999);
function toolbar_link_to_mypage($wp_admin_bar){
global $wp_admin_bar;
...
-1
votes
1
answer
1k
views
Plugin link does not appear in my toolbar
I haven't installed anything that would break the link, as far as I can tell it's just never been there. I have no idea what to do, please help.
0
votes
1
answer
142
views
toolbar not visible on pages using front-page template
My profile is set to show the WP toolbar when viewing the site, but on a page using the front-page.php template the toolbar space is reserved but its contents are not visible. What could be the reason ...
7
votes
2
answers
8k
views
Modify Admin Bar Link
Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following:
function wp_admin_bar_new_content_menu( $wp_admin_bar )
What it does it generates the + New ...