Hi guys, I am experiencing the following problem:
When "Show Admin Bar for Members" is set to No, any user that is not admin will see some extra padding in the area where the admin bar would be.
If logged on as admin, the extra padding appears to be replaced by the admin bar.
I have attached a picture that shows what happens for both admin and a different user.
Notes
- if I keep only wpForo as active plugin, the problem appears
- If I switch off all plugins including wpForo, the problem goes away
- I believe I started experiencing this since I updated to WordPress 5.5
- This issue may or may not be related to this WP bug (which was then fixed in v. 5.5.1, but it seems to still affect wpForo, perhaps?)
- I believe my issue and https://wpforo.com/community/how-to-and-troubleshooting-2/space-for-admin-bar-still-showing/ are related
My versions:
- Wordpress 5.5.1
- wpForo 1.8.4
Thanks,
fawp
you can use this until a general solution comes through an update
add the following action to your active WP Theme function.php
add_action('get_header', 'remove_admin_bar_weird_css');
function remove_admin_bar_weird_css() {
remove_action('wp_head', '_admin_bar_bump_cb');
}
the distance comes from CSS formatting for the adminbar
html {
margin-top: 32px !important;
}
this must be overwritten if the adminbar is not displayed
Wondering if wpForo support is looking into this?
I am not asking for a solution right away - just checking whether someone is aware that multiple people have this issue and whether someone will look into it.
Thanks
this is something specific on your end, probably theme or plugin conflict.
Hi @alvina, please note:
- I am not the only one affected by this: @fredclown @danniee and @tutrix are experiencing the same issue (there are two threads about this: this thread as well as the other thread I am pointing out in my first post above here)
- To ensure there's no confusion, I have tested this again with WordPress Twenty Twenty standard theme as well, and I will post the results in the next posts
-
So we need to check it on your website
please note that I am doing this on a localhost, so you would not be able to check this on a live website in my case
- I have now posted the results, they are in the next page