Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Admin toolbar stuck, always shown on front end WordPress

  • SOLVED

Hello,
The admin toolbar for some reason is always shown is on the front end of the site. Here are more details about the situation:
1. It's only stuck for one user.
2. I've disabled the "show toolbar when viewing site" option for that particular user. Doesn't work.
3. I've deleted the user and still the toolbar is shown.
4. I've deactivated the W3TC plug in cache and still the toolbar is shown.
5. When viewing the site directly on the IP address, instead of the domain name, the toolbar problem doesn't appear.

Answers (6)

2013-09-02

Abdelhadi Touil answers:

Hi.
Can you let us visit your website to test? I think it's a cache problem. Have you tried to clear all cache of W3TC plugin?


mike_hfn comments:

Hi,
W3TC is no longer activated at the moment so I don't think the problem is related to W3TC.

Website address is www.headfonia.com


Abdelhadi Touil comments:

Deactivating W3TC is not enough, you must delete all cache files. Try to activate the plugin and delete all cache files from its dashboard.


mike_hfn comments:

@Abdel
I've tried deleting cache files like a gazillion times.


Abdelhadi Touil comments:

Try to uninstall W3TC plugin, here is how:

[[LINK href="http://redstarwebdevelopment.com/2013/05/03/how-to-remove-w3-total-cache/"]]http://redstarwebdevelopment.com/2013/05/03/how-to-remove-w3-total-cache/[[/LINK]]

After that the problem should be fixed, so you can reinstall W3TC again.


mike_hfn comments:

Abdel,
thank you deleting W3TC seems to have solved it.


mike_hfn comments:

How do I close the question now?


Abdelhadi Touil comments:

Happy to hear that the problem is fixed :)
As for closing the question, hope this helps you:

[[LINK href="http://blog.tailormadeanswers.com/2011/04/22/voting-assign-prize-money/"]]http://blog.tailormadeanswers.com/2011/04/22/voting-assign-prize-money/[[/LINK]]

I haven't asked a question before, so I'm not sure how to close it, but I think the link above gives some clarification.
Good luck.


mike_hfn comments:

Thanks. Hope the prize gets distributed properly.

2013-09-02

Hariprasad Vijayan answers:

Hi,

Delete cache folder from server, delete browser cache and try again

hope this will help you...


Hariprasad Vijayan comments:

take backup before deleting cache folder


mike_hfn comments:

Thanks Hari,
Have tried clearing browser cache, and also checking in from multiple devices so I don't think it's browser cache.

W3TC is deactivated at the moment. Do you still want me to delete the cache folder?


Hariprasad Vijayan comments:

yes


mike_hfn comments:

If what you're telling me is what Abdelhadi Touil said, then yes I've cleared the cache folder a thousand times.

2013-09-02

Arnav Joy answers:

simply put this code in your theme’s functions.php file

show_admin_bar(false);

check this article

http://www.wpbeginner.com/wp-tutorials/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators/

or
you can use this plugin

http://wordpress.org/plugins/disable-admin-bar/




mike_hfn comments:

Thank you,
I've done that method and still the admin bar is shown.


Arnav Joy comments:

please check your footer.php file , I think any thing is written there.

2013-09-02

Remy answers:

What's the role of the user seeing the toolbar ? Any other plugin that could manipulate it, or a function in the functions.php of your theme ?


mike_hfn comments:

Remy
At the moment that user doesn't exist anymore. Before I deleted his account, he had an Admin role.

I don't know how do I check if a plug in is manipulating something? I haven't installed a new plug in in years.

2013-09-02

Rowela Alzona answers:

Maybe just use a CSS trick down there, like


#wpadminbar {
visibility: hidden !important;
}


2013-09-02

Navjot Singh answers:

Try adding this line in your functions.php

add_filter('show_admin_bar', '__return_false');


mike_hfn comments:

Have tried that, Navjot. Thank you.

Deleting W3TC plug in does it.