• Hi,

    thanks for providing this plugin! Dakujem!

    I already have had an intensive research for an admin bar customization plugin suiting my use cases.

    Tweaking your settings already got me very close to meet my most important requirements.
    – I set the Admin bar opacity (inactive) to 0%.
    — This way it’s not visually interfering at all.
    – I set Top hover area height (if autohide) to only 4px and the Hover delay to a long 2000ms.
    — That way you have no interference at all with normal top menu interactions.

    The only things missing to a perfect-enough solution:

    1) Could the parameter “Hover delay” be split into “Delay for showing menu” and “Delay for hiding menu”? That way you can tune it more to your need.

    2) Could the role-specific behavior be fine tuned? I would propose this:

    Menu bar shows for certain roles at these events:

    
    Admin:		[ ] Init [ ] Hover [ ] Hotkey [ ] FloatButton [ ] MenuItem
    Editor:		[ ] Init [ ] Hover [ ] Hotkey [ ] FloatButton [ ] MenuItem
    Subscriber:	[ ] Init [ ] Hover [ ] Hotkey [ ] FloatButton [ ] MenuItem
    Role X:		[ ] Init [ ] Hover [ ] Hotkey [ ] FloatButton [ ] MenuItem
    ...
    

    Notes:
    – Hotkey, FloatButton, MenuItem is currently not implemented. Just illustrative for how a role/trigger matrix could look like and be extended over time.
    – Selecting no option means that the admin menu remains always invisible to that role.
    – Selecting “Init” is the quite strong but should nevertheless be combinable with other options.
    — If “Init” gets combined i.e. with “Hover” you could on demand hover over the admin-bar and then move out, and it would get hidden.
    — If combined with “Hotkey” you could toggle it with your hotkey.
    — There could also be combinations which make little sense, but I would leave that up to the user and not create and logic handling/limiting this.

    These current options would then be redundant and get deleted:
    – Hide admin bar for all users
    – Hide admin bar for all users except admin

    These option would get renamed:
    – OLD: Hide admin bar on screens smaller than 
    – NEW: Initial showing of admin bar hidden on screens smaller than

    What do you say? Am curious.

    • This topic was modified 2 years, 8 months ago by abitofmind.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor kubiq

    (@kubiq)

    Hello,

    this plugin is only small tweak for admin bar and there is no intention to make it more complex as it’s just free plugin.

    It was created for my clients/projects needs and I decided to share it here, but I don’t see any potential to make some PRO version, so there is no motivation to invest more time in this.

    Of course I will maintain this plugin with new versions of WP, but that’s all.

    Thread Starter abitofmind

    (@abitofmind)

    Hi @kubiq,

    thanks for your clear answer! And thanks for sharing a client-project with us all! And no worries, your plugin is anyhow appreciated very much as it is!

    I meanwhile anyhow discovered some option-combinations which bring me to a perfect result!

    Tweak to have zero distraction and no interference with the normal top menu:
    • Admin bar opacity (inactive) to 0%.
    • Top hover area height (if autohide): 4px
    • Hover delay: 2000ms

    • Hide admin bar for all users except admin ON + Auto-hide admin bar ON
    + Normal users see nothing.
    + Nevertheless they can login and logout by direct URL access.
    + Admin can reveal the menu with hovering.

    • Hide admin bar for all users except admin OFF + Auto-hide admin bar ON
    + Nobody sees the menu by default as auto-hide is on.
    + Those with special knowhow of 4px + 2000ms can access the menu if in need.
    ++ The admin knows this anyhow and it’s not making her/him less productive, with the proper settings.
    ++ Editors, lectors, etc can be instructed. Perfect!

    Last but not least:
    • Not sure whether you are aware of it, whether this is a minor bug or an intentional hidden expert feature: Due to how it is implemented, you can already click the admin bar items while the hover-delay has not yet passed and therefore the revealing of the bar has not yet kicked in!
    Not at the blank part of the menu, but at the positions where the click-able items are.
    • That way you learn: Aha over my legitimate menu-item A there is the hidden admin menu item X, and over B, there’s the hidden Y, and so on.
    And when you have learned that you can click it immediately (cursor changes from mouse to finger-pointer) even before the auto-show kicked in.
    • I guess this is due to some Z-layer or display:none or visibility:hidden quirk, how ever it is implemented, have not looked at it.
    • For me this is not a bug but a feature! 🙂 Because triggering it unintentionally can de facto not happen if you set the hover-zone narrow and know how to operate it.

    Thanks a lot! And good to know that this plugin will at least receive compatibility upgrades if needed!

    Plugin Contributor kubiq

    (@kubiq)

    Hm, good point, that’s an old bug I totally forget about.
    Problem is when user has too many items in admin bar and it will break to more rows.
    I have a fix in my plugin “Fix multiline admin bar”, so if this is enabled, then I should add overflow:hidden on #wpadminbar and it will fix this hover issue.
    But the problem is when user don’t want to use this “Fix multiline admin bar” for some reason, then whole behavior can be broken.
    I’m thinking if it’s good idea to simply force “Fix multiline admin bar” to everyone and remove it from option and fix this issue with hover.
    Are you using this option? You can enable it and test it on smaller screen, when you resize browser window? I use this option everywhere but hard to say if other users will be happy with this forced fix.

    Thread Starter abitofmind

    (@abitofmind)

    Enabled “Fix multiline admin bar” and then saved with the other options being this:

    The bug persists also after that. I can still click the hidden items of the menu bar while the entire bar is hidden.
    – WordPress 5.8
    – Astra Theme with normal top bar, no exotic customizations that I’m aware off.
    – Safari 14.1.1 on macOS 12.4 Big Sur

    As said, for me this is not a bug but a hidden expert feature! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hover delay fine-tuning + Better role specificity’ is closed to new replies.