#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Extra padding in ad...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Extra padding in admin bar area for any user other than admin

Page 2 / 3 Prev Next
    Last Post
RSS

fawp
Posts: 112
 fawp
Beta Tester
Topic starter
September 24, 2020 10:05 am
(@fawp)
Estimable Member
Joined: 3 years ago

In this post I am showing what happens when all plugins are disabled:

 

01-1-all plugins inactive

Just to show no plugin is enabled

01-2-admin-adminbar visible

In the Twenty Twenty default theme you can see the admin bar, as expected for admin

01-3-testuser-adminbar visible

In the Twenty Twenty default theme you can also see the admin bar for a normal user (testuser)

 01-1-all-plugins-inactive.png
 01-2-admin-adminbar-visible.png
 01-3-testuser-adminbar-visible.png
Reply
fawp
Posts: 112
 fawp
Beta Tester
Topic starter
September 24, 2020 10:10 am
(@fawp)
Estimable Member
Joined: 3 years ago

In this post I am showing what happens when all plugins except wpForo are disabled:

02-1-Only wpForo plugin active

Just to show wpForo is the only plugin that is enabled

02-2-admin-adminbar visible

Once again, in the Twenty Twenty default theme you can see the admin bar, as expected for admin

02-3-testuser-adminbar NOT visible

This is where things change: a user who is not admin, will see extra padding where the admin bar would be. This happens when "Show Admin Bar for Members" is set to No.

 02-1-Only-wpForo-plugin-active.png
 02-2-admin-adminbar-visible.png
 02-3-testuser-adminbar-NOT-visible.png
Reply
fawp
Posts: 112
 fawp
Beta Tester
Topic starter
October 6, 2020 2:44 pm
(@fawp)
Estimable Member
Joined: 3 years ago

@fredclown @danniee @tutrix

 

did any of you manage to solve this issue, or are you using a workaround?

 

Thanks

Reply
3 Replies
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
October 6, 2020 3:51 pm
Reply tofawpfawp

@fawp

I remove the space with the code I posted on page 1

add_action('get_header', 'remove_admin_bar_weird_css');
function remove_admin_bar_weird_css() {
remove_action('wp_head', '_admin_bar_bump_cb');
}

and add it again when the admin bar is displayed with css

.logged-in.admin-bar {
margin-top: 32px;
}

and so everything is ok

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
fawp liked
fawp
 fawp
Beta Tester
(@fawp)
Joined: 3 years ago

Estimable Member
Posts: 112
October 6, 2020 7:23 pm
Reply toTutrixTutrix
fawp

Thanks @tutrix - this is still a workaround though, isn't it?

 

I am trying to get to the bottom of whether this issue affects only specific situations or not.

 

The guys at wpForo seem to suggest this is a localized problem (meaning it does not affect everybody), although I pointed out I was not the only one with this issue.

 

You would still have the issue, if you hadn't added the extra code, would you?

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
October 7, 2020 4:12 am
Reply tofawpfawp
Tutrix
fawp

@fawp

this is a very old problem with Wordpress when the adminbar is hidden

you can find many similar questions over google search

most users or authors will not see it because they are working with the visible adminbar

I only saw it because I run several blogs and am also often logged in as testuser without the adminbar

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
danniee
Posts: 159
 danniee
October 6, 2020 2:47 pm
(@danniee)
Estimable Member
Joined: 3 years ago

Nope, did not solve this :/

Reply
fawp liked
fawp
Posts: 112
 fawp
Beta Tester
Topic starter
October 7, 2020 7:46 am
(@fawp)
Estimable Member
Joined: 3 years ago
Posted by: @tutrix

this is a very old problem with Wordpress when the adminbar is hidden

But the adminbar is not hidden, that's my entire point. If you check this post above, you will see that WordPress itself behaves normally when all plugins are disabled.

But when you activate only wpForo, with the "Show Admin Bar for Members" set to No, that's when you notice the problem.

 

How do you explain it?

Thanks

Reply
1 Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
October 7, 2020 1:43 pm
Reply tofawpfawp

But the adminbar is not hidden, that's my entire point.

But when you activate only wpForo, with the "Show Admin Bar for Members" set to No, that's when you notice the problem.

"Show Admin Bar for Members" set to No = means the adminbar is hidden
and only by hidden Adminbar you see the now empty margin-top 32px 

and the 2 codes solve the problem

the first code remove the "margin-top 32px" so all is ok when the Adminbar is hidden
the second code add the margin-top 32px so all is ok when the Adminbar is visible

sorry, for me this is not a very big problem
i added the 2 codes and everything works fine

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
fawp liked
Page 2 / 3 Prev Next
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Design help with WPforo's module
    8 months ago
  • Members and profile ignoring wpforo-wrap
    1 year ago
  • Removing the padding
    3 years ago
Topic Tags:  padding (5),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Font Awesome Icons

    By seancallahan, 10 hours ago

  • Notification bell order

    By teepeenomad, 2 days ago

  • Not İndexing

    By selinahub, 2 days ago

  • H1 to H6 title tags : remove

    By venus, 2 days ago

  • Can't access forum dashboard 504 gateway time-out

    By Joselito, 3 days ago

  • Sharing with Facebook and Twitter is kind of broken

    By seancallahan, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • shortcode32
  • spam31
  • forum accesses30
  • widget29
View all tags (2188)

Recent Posts

  • Font Awesome Icons

    To start, I do not have any caching setup on the site o...

    By seancallahan, 10 hours ago

  • RE: Is there a way to add safety features?

    @chris Is there a way for me to install 2.0 on my site ...

    By seancallahan, 13 hours ago

  • RE:

    By Anonymous, 53 years ago

  • RE: Notification bell order

    @tutrix Brilliant, thank you for this! Although, it ...

    By teepeenomad, 16 hours ago

  • RE: wpForo 2.0.0.1 beta version is released for beta testers!

    Added, thank you.

    By Robert, 2 days ago

  • RE: Post title length error.

    Hi @hasanaytac, Please provide your forum URL.

    By Chris, 2 days ago

  • RE: Health.gd Health website

    Nice forum, still you have an issue / crash: Uncaught...

    By dimalifragis, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,925 Topics
50.2 K Posts
13 Online
47.6 K Members

Latest Post: Font Awesome Icons Our newest member: — Под «потеряли» Ты Имеешь В В... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation