• Resolved Dunhamzzz

    (@dunhamzzz)


    I’m on the latest trunk, and for some reason it is impossible to remove the admin bar in both the conventional and unrecommended ways, I have tried all of these so far:

    add_filter( 'show_admin_bar', '__return_false' );
    show_admin_bar(false);
    remove_action('init', 'wp_admin_bar_init');

    I understand that some of the admin functionality is being merged into the adminbar, but as I am doing a complete wp-admin re-skin I don’t need the screen options/help etc that is now in the admin bar anyway.

    Will there be a way in the future to remove the adminbar properly in the wp-admin in 3.3? Obviously CSS is still a possibility.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Woo…thanks so much olyma for those plugin links. I hate that stupid admin bar and half the plugins I use with an offsite login option from the dashboard were rendered useless by the admin bar copying and cloning itself down the page blocking buttons, links and text fields…like a string of admin bars…god I hated that thing but those two plugins got rid of it on both the back and front end…thank you so much!

    I know some of you Wordie fanboys love everything the WP Devs throw at you – and I’m a Wordie fan girl myself – but seriously, some of these things are intrusive, annoying and should always have a user option to turn it off. I like the simplicity of the 2010 and 2011 default themes but I’ll never, ever use them. The one single time I did, I had to go back in and redo the styles and other settings every time WP sent out an upgrade. The devs might think that’s necessary but those of us who spend time styling things get really ticked really quickly having to redo all that. We shouldn’t have to save copies to replace anything short of a backup for a crash…

    Anyway, I know it won’t make a dent so whatever. At least I got rid of that stupid admin bar. If it’s as simple as a couple plugins to do the trick, I really can’t see why the devs force it on people and can’t “dev” up an OFF switch. It’s obviously not that hard to pull off…

    Happy New Year to you guys, by the way…stay safe!

    Hello Jan

    You can put the first piece of code anywhere in your functions.php file, before the ending PHP tag (?>) – it should work just fine. Admin.css file should contain the CSS code – second part of code in my first reply, beginning with “#wpadminbar…”.

    Nevertheless, to get rid of those unstyled menus on your frontpage you should first disable WordPress Admin Bar Improved plugin – it probably has its own admin menu rendering system, which won’t be affected by my custom changes.

    Regards

    Marcin

    Thanks Olyma! Finally got rid of that clutter-magnetic strip. Which suspiciously looks like a copycat of Google’s and Twitter’s and… and… As I strongly suspected, plugin developers can’t help themselves and hungrily jumped on that admin bar like white on rice, and the poor thing predictably grew exponentially over these past weeks with “handy” (and repetitive) plugin shortcuts.

    No more. Pity that it takes two plugins to correct the problem in the core but there you are. I’m happy again (until the next “must-have-like-the-others” appears).

    When I try to add the code to remove the bar from functions.php, I get:

    “Call to undefined function add_filter()”

    add_filter(‘show_admin_bar’, ‘__return_false’);

    Same issue – call to undefined function in wp-includes/functions.php.

    This is a disastrous idea. Users can now see so many things in the bar that I cannot allow them see. Providing no way to turn this off is mind boggling. We’ll see how more unnecessary plugins will clog the system and shouldn’t need be there. Hopefully this will be “fixed” soon.

    Old Skool Plugin – only removes the admin side toolbar, not what the user sees on the front end. I need the opposite and fast.

    i did manage to (sort of) cure my issues. my problem was mainly with an unstyled admin bar menu floating around behind my page header at the top left. i saw mention in another thread of looking out for link code which might have been erroneously copied into the footer – sure enough when i looked at footer.php i saw the link code relating to my unstyled menu. i unceremoniously ripped out the offending code from footer.php, which not only removed my horrid unstyled menu but appears to have completely annihilated the front end admin bar, which is no longer visible. i still have an admin bar when i am logged into the dashboard which i now get to via the ‘log out’ link in the footer: https://www.budestrings.co.uk

    Thanks – I had to get rid of the whole thing. While I liked having the admin bar on the back end, I could not have it on the front end.

    Add on any line: add_filter( ‘show_admin_bar’, ‘__return_false’ );

    Put that in your theme/functions.php file and it will get rid of it entirely. Just had to be done. Thanks for your help.

    i did try that filter on mine to no avail. i reckon the code in the them i am using is a mess – maybe a lot of this stuff will become redundant when i have my site functionalities sorted and migrate to a premium theme… a man can dram can’t he?

    Just install this simple plugin: CJ Remove WP Toolbar
    Tested up to 3.3.1

    I Would like to thank Marcin for the nice code it works well and opens some cool style possibilities too..the real issue for was was just to get the links out of the way..the drop down seemed to always get in the way when flying thru the process of create a page check the live view ect..So THANKS Marcin! You Rule!
    ??

    Thanks @thelaw, your fix worked for me. To the devs, I don’t understand the need for any “admin bar” at all. Do we not live in a world of tabbed browsers, where anyone can simply drag the Site Admin link to a new tab and use the full interface from there? While popping back to the site view tab and refreshing it to see the changes in real time?
    My reasons for removing it are simple. a) I have testing to do, and having the admin bar showing up on the front end regardless of the user’s profile setting puts a variable into testing that I can’t measure. b) my users are not site admins, and they have no wish or reason to learn how the WP back end works in any fashion, they just want to post their comments and posts using conveniently placed front-end controls, like the ones they use on other freely available, large scale systems.
    Given that, I would suggest that the time and effort to make yet another admin interface would be better spent on bringing WordPress up to the times with WYSIWYG front-end posting, editing and profile management. I’d offer my solutions but they’re basic bubble gum and bailing wire arrangements to keep my users thinking that WP lives in the year 2012, and not anything that could be used to bring the capabilities to core.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Cannot remove admin bar from wp-admin in 3.3’ is closed to new replies.