Notifications
Clear all

wpForo 1.x.x [Closed] Extra padding in admin bar area for any user other than admin

22 Posts
5 Users
11 Reactions
3,083 Views
Posts: 201
 fawp
Topic starter
(@fawp)
Reputable Member
Joined: 5 years ago

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

My versions:

- Wordpress 5.5.1

- wpForo 1.8.4

 

Thanks,

fawp

Topic Tags
21 Replies
Tutrix
Posts: 1466
(@tutrix)
Noble Member
Joined: 5 years ago

@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');
}
1 Reply
 fawp
(@fawp)
Joined: 5 years ago

Reputable Member
Posts: 201

Thanks @tutrix - I already have several code-based workarounds.

I'm really looking to understand what the root cause of the issue is here.

I appreciate the extra code though.

Tutrix
Posts: 1466
(@tutrix)
Noble Member
Joined: 5 years ago

the distance comes from CSS formatting for the adminbar

html {
margin-top: 32px !important;
}

this must be overwritten if the adminbar is not displayed

Posts: 201
 fawp
Topic starter
(@fawp)
Reputable Member
Joined: 5 years ago

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

1 Reply
Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1862

Hi @fawp,

There is no such issue on our test website, this is something specific on your end, probably theme or plugin conflict. So we need to check it on your website. Please register some new testing user and send the user's login details with your forum URL to info[at]gvectors.com email address to allow us to check.

Also please leave the email subject here to allow us to easily find it.

Posts: 201
 fawp
Topic starter
(@fawp)
Reputable Member
Joined: 5 years ago
Posted by: @alvina

this is something specific on your end, probably theme or plugin conflict.

Hi @alvina, please note:

  1. 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)
  2. 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
  3. Posted by: @alvina

    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

  4. I have now posted the results, they are in the next page
Page 1 / 3