Tagged Questions

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.

learn more… | top users | synonyms

0
votes
0answers
12 views

Remove DEFAULT POSTS (not custom ones) in admin panel

I am trying to hide the post link in the menu in the admin panel, my code is the following. Any idea what might be wrong? I added that string at then end of my functions file. Thanks a dozen! ...
0
votes
0answers
17 views

Modification to admin bar Site Name does not change from one network site to other

The wordpress admin bar has a 'Site Name' section, that when clicked takes you to the dashboard if you're on the front end, or vice versa. The sitename code for the admin bar can be found in ...
1
vote
1answer
65 views

Deregister CSS style file from WP footer

When user is logged in WP add in its footer this CSS: <link rel='stylesheet' id='open-sans-css' href='//fonts.googleapis.com/css?family=Open+Sans....' type='text/css' media='all' /> That ...
0
votes
0answers
24 views

Admin bad not appearing in front end and cant get it back

I tried everything i found on the net: checking whether wr_header and wp_footer exist in my template (they do), checking my css (no rule is blocking it), checking whether the option is activated on my ...
0
votes
1answer
32 views

Manually add admin bar

Does anyone know how to include the admin bar in a page template where wp_head() and wp_footer() are not present? I'm developing a template other scripts and styles are just getting in the way. Rather ...
0
votes
0answers
8 views

How to call a FB function from an admin bar action?

I am using FaceBook's SDK inside of my wordpress application. I need to set up the application so when a user clicks log-out on the admin bar, it will fire facebook's log-out function. in order to ...
0
votes
1answer
19 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
2answers
104 views

Hide Front-End Admin Bar Including 32 px Spacing

I have a custom template and I inserted the following snippet to get rid of the admin bar for the page: function hide_admin_bar(){ return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); ...
1
vote
0answers
67 views

How can I remove menu items from “my sites” on a multi-site network?

I have a multi-network site, and so there's a menu in the WP Admin Bar that says "My Sites," and contains a list of the user's sites. I'd like to remove the root site from this list. I thought it'd be ...
0
votes
1answer
92 views

After changing wp from subdirectory to root I can't preview any changes to a page or post

I followed the guideline from WP Codex. Changed the site url in general settings Copied the .haccess and the index.php files from the subdirectory to the root Edited the root index.php (new copied ...
0
votes
1answer
34 views

Top Admin Bar Never Shows Up

So I recently moved a site to a new domain and updated the URL to reflect the changes in the database as well as in the wordpress backend. wp_head and wp_footer are placed respectively in header.php ...
0
votes
2answers
31 views

How can I modify admin bar only if my plugin is loaded

If I want to always change the admin toolbar at the top of the page it's easy. add_action('admin_bar_menu', 'add_toolbar_items', 100); function add_toolbar_items($admin_bar){ ...
0
votes
0answers
22 views

WP Admin bar from subdomain included on main domain (non WP)?

I have a question regarding integrating the WP admin bar from a WP install on a subdomain into the main website (built only with HTML/PHP). I would just like to implement it so that users can login ...
0
votes
1answer
26 views

Admin and Toolbar on the bottom, how to dropup menus?

I placed my adminbar in the dashboard and front end on the bottom, and I am having trouble on figuring out how to make the dropdown menus dropup. Also when the site is viewed in landscape on mobile ...
0
votes
0answers
15 views

Add item to admin bar as late as possible

I have an admin page in my plugin where I want to show a balance figure in the admin bar. This works fine for the most part: // in the __construct method add_action('admin_bar_menu', ...
1
vote
1answer
50 views

Open Admin bar “Visit site” in a new window

Is it possible to create a filter to make in sort that the link in the admin bar to open in a new window. I know that the right-click -> open in a new tab is a common use for us programmers but for ...
0
votes
1answer
124 views

Disable the admin bar / probleme with responsive menu

I am using a plugin called Disable WP Admin Bar Removal The goal : Disable the admin bar (back and frontend). I really want to disable this bar for the dashboard but if I want to use the ...
0
votes
2answers
321 views

Admin Top Bar Not Showing On Front End

i'm having problem with displaying admin top bar on my site. I googled and got some solution which i tried like 1) Checking wp_footer in footer.php 2) Checkbox ticked in user profile saying show ...
1
vote
1answer
535 views

Top admin bar / toolbar not showing even when logged in, but empty top margin showing?

I wrote a theme and the top admin / tool bar is not showing. I still see an empty margin. Any ideas? Here the top margin I never set anywhere in my files. I actually want to show the toolbar ...
0
votes
0answers
58 views

Display Admin Bar on “Non-WordPress” PHP Page

On my WordPress multisite, I am generating a page directly from a .php file (http://example.com/sort.php) and would like to display the admin bar across the top of the page. While I am able to display ...
1
vote
1answer
76 views

How can I check if the admin bar is visible to the current user?

I'm new to WordPress. I would like to know Is the admin bar visible to all users and roles? If not, how can I check it is visible to the current user?
2
votes
1answer
58 views

Modify the WordPress admin bar CSS?

I want to remove how it adds 32px to the top of the HTML tag. It's dumping it there with a STYLE tag right at the end with !important. It's damn impossible to override it, because there are no hooks ...
0
votes
2answers
418 views

Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap

The problem (Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap): While logged in and viewing the frontend -- If you shrink your browser down, there is an excess amount of white ...
0
votes
0answers
80 views

WordPress Admin Bar Not Displaying Both Custom Drop-down Menus

I'm having trouble displaying two custom drop-down menus in the WP admin bar. What I want is the first drop-down to display the back-end (editing part) links of every page and the other to display the ...
0
votes
1answer
59 views

Add blog languages to blog-name inside my-site-list in admin-bar

I would like to add the language of every blog to the blogname inside the my-site-list inside the admin-bar. The result should look like this: For adding the languages to to the site-name in (1) I ...
0
votes
0answers
20 views

How can I add my_account_item to my custom theme?

Now I am creating a theme for my website. But now on my theme I need to add user account item (my_account_item()) that is shown on my admin bar. On above image shows my theme part and admin_bar. I ...
0
votes
1answer
106 views

Adminbar Missing “Edit Page”

I'm encountering a problem that involves that my Admin bar doesn't show the "Edit Page" on pages I visit on my site. Instead for some odd reason it show "Edit Category" instead on supposed page. Does ...
0
votes
0answers
75 views

disable admin-bar search field for specific roles

I would like to disable the admin bar search field when certain users, belonging to specific roles are logged in. I would like to keep the search field available for the role 'admin', but not others. ...
0
votes
1answer
56 views

call adminbar greeting in other place

I have disabled wordpress adminbar by adding this filter: add_filter('show_admin_bar', '__return_false'); But I still want to use it's greeting in other place. By greeting I mean a dropdown menu ...
0
votes
2answers
649 views

WP admin bar only on some pages

I am trying to create my first wp theme. So far it has been quite nice experience, but now i have a problem that i don't quite understand. The Admin bar is showing only on some of my pages, on the ...
1
vote
1answer
2k views

Replace admin bar logo

WordPress 3.8 is out I have the following code to remove admin bar logo. function no_wp_logo_admin_bar_remove() { global $wp_admin_bar; $wp_admin_bar->remove_menu('wp-logo'); } ...
0
votes
2answers
89 views

How to hide “post” link from the admin bar

After studying several blogs, I figured out that to add/edit/delete admin bar items need to do something like this: add_action( 'wp_before_admin_bar_render', 'wpse20131211_admin_bar' ); function ...
0
votes
1answer
101 views

How to call for bloginfo inside function in functions.php?

I am new to WordPress and PHP, so I have this question: I want to add a Link to the "New Post" for a Custom Post Type I implemented. But it will only let me put static links, connected to my ...
1
vote
2answers
140 views

How can I specify the position of an admin bar item added with $wp_admin_bar->add_menu() or add_node()?

I want to add a link to my site in the admin bar, and make that link the leftmost item in the admin bar. I can add a link with this in a plugin function: $wp_admin_bar->add_menu( array( ...
1
vote
2answers
176 views

How to remove admin bar logo in WordPress using plugin

I'm following the instructions from this page to remove the adminbar wordpress logo and cannot quite understand why this is not working in a plugin I have created. // Hide top left WordPress logo ...
0
votes
1answer
39 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
2answers
44 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 ...
1
vote
1answer
116 views

Toolbar/topbar missing on homepage only?

My theme seems to have the <?php wp_footer() ?> and <?php wp_head() ?>, yet it's still not showing on the homepage of my site. However, it is visible on all other pages and posts.
0
votes
1answer
49 views

Display Admin Bar when Logged

I am unable to display the admin bar in the front end while the user is logged in to the admin.I have the wp_footer() and the checkbox in the user profile is checked too. can some one please help.
1
vote
1answer
80 views

Loading Admin Toolbar in header not Footer to Scroll it with page

I'm trying to load the admin toolbar on the front end immediately after the head tag in my header. I'm trying to achieve something like this as opposed to how it usually gets loaded at the end of the ...
0
votes
1answer
138 views

Frontpage Admin Bar Disappeared

I am on a multisite network. Recently my frontpage admin bar dissappeared but continued to show at backend. I disabled all the plugins, changed theme to twenty ten and twenty twelve also, but no ...
0
votes
1answer
32 views

How to remove only pages from Admin Bar?

How can I remove only pages from Admin Bar?
0
votes
2answers
96 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 ...
0
votes
1answer
117 views

Change path/url of admin-bar.min.css

Does anyone know where admin-bar.min.css is registeded/included? Im trying to add a slash in front of admin-bar.min.css, so the admin bar will work correctly on all pages. Im playing arround with a ...
0
votes
1answer
118 views

Adding new parent item to admin bar

I see many questions have been asked about adding something to the admin bar, but still I can't get a new 'parent' admin-bar item for Advanced Custom Fields to work. The admin bar doesn't show up if I ...
1
vote
1answer
194 views

wp_before_admin_bar_render action not working in back office

This is working great in the front site wp admin bar: add_action('wp_before_admin_bar_render', 'customize_admin_bar'); function customize_admin_bar() { global $wp_admin_bar; if ...
0
votes
1answer
101 views

Why do previews work in one browser, but not another?

I keep having an intermittent issue where the admin bar disappears from a wordpress site I often use, when using my main browser (Google Chrome). I can access /wp-admin/ no problem, and another ...
0
votes
1answer
155 views

How to display admin bar when using wp_use_themes = false?

So I'm using Wordpress in a 'themeless' manner, i.e. not using a "blog" template. My site files are in the root directory (not in the theme folder), and Wordpress is installed in its own /wordpress/ ...
2
votes
1answer
248 views

Change the link of 'Howdy' at the top right

I'd like to change where the 'Howdy' link gets you when you click on it. I have a website with buddypress and instead of getting users to their profile page I want to get them to their 'Activity' ...
0
votes
1answer
189 views

Custom Div with links on Admin Bar

I'm trying to add an area on the admin bar that will display user Profile Image, User Name, User Email, User role, and links to Edit Profile and signout. The way in which I would like it to display is ...