-
AuthorPosts
-
December 6, 2016 at 12:38 pm #720957
Hi Support Teeam
I have the problem on
I would like to remove the admin bar: i found a sololtion here:
https://kriesi.at/support/topic/how-to-hide-admin-bar/
but on Safari Browser there is still this fuxxx admin bar.
Do you now a solotion?
I Try all of theme a Plugin, does not work.
December 6, 2016 at 2:55 pm #721025Hey Pascal!
I changed the code to following one
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
Please review your website now
Best regards,
YigitDecember 6, 2016 at 3:22 pm #721058Hi Yigit
Thank you for your changes, but on Safari i have still a admin bar: https://www.dropbox.com/s/p8vzdfj0eppgyb9/Screenshot%202016-12-06%2014.21.18.png?dl=0
Hmm, what else will work?
All the best, Pascal
December 8, 2016 at 3:27 pm #722014Hi,
Please post us your login credentials (in the “private data” field), so we can further.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
Best regards,
NikkoDecember 8, 2016 at 3:33 pm #722019Hi Nikko
Sorry i forget ;-)
All the best,
PascalDecember 8, 2016 at 6:33 pm #722110Hey!
Thanks, I checked it should work, just want to check if the user account you used in the screenshot is an admin account also? and to clarify, you mentioned this only happens in safari, so the adminbar is not displaying on browsers like chrome or firefox? if yes, can you also give allow us to use an account that is just a subscriber.
Cheers!
NikkoDecember 9, 2016 at 3:04 pm #722439Ni Nikko, we have to suspend here that problem, because the system is now live and we have some massive problems with caching and also someone with admin access has change the langueges etc. so we delete all admin access and will buildup a test envoirment and i will contact you again if it works to solve this problem.
All the best,
PascalDecember 15, 2016 at 4:33 pm #724893Hi Nikko
Now the site works ok, so i made a customer account for you, see in private
December 16, 2016 at 5:15 pm #725453Hi,
I have checked it and it’s weird you can hide it in administrator account but still showing up on the customer account, I have replaced the code with:
if(!current_user_can('edit_posts')) { remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); add_action('wp_footer', 'hideAdminBar'); } function hideAdminBar() { ?> <style type="text/css"> html { margin-top: 0 !important; } * html body { margin-top: 0 !important; } @media screen and ( max-width: 782px ) { html { margin-top: 0 !important; } * html body { margin-top: 0 !important; } } </style> <?php }
Let us know if it’s working on your end.
Regards,
NikkoDecember 16, 2016 at 5:56 pm #725485Hi Nikko
You are my Hero :-)
1000 Thanks and have nice weekend.
Cheers, Pascal
December 16, 2016 at 7:53 pm #725527Hi Pascal,
Glad we could help :)
Cheers!
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.