• Admin staff must spend hours with their eyes and mouse searching up&down to find the menu element they need.
    This plugin helps solve this … big Thank You.

    One small question:
    We have copied some menu elements and pasted them into a new menu list. All is fine, except that ‘badges’ are just displayed as numbers i.e. not css-styled like badges (which are in roundals).
    Well looking deeper, they ARE styled! (I can see the styles in the html) but the styles are not working!? – except for a millisecond when the mouse leaves the menu-list.
    Is this know about – or just something to do with our theme (which is old)

Viewing 1 replies (of 1 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Could it be that those menu items were using custom badges? The default badge/counter/bubble styles should work fine no matter where they are in the admin menu, but some plugins might use custom styles that depend on a menu item being in a particular location. For example, maybe their CSS styles use selectors based on the menu hierarchy.

    For reference, here’s some example badge HTML that I tested on WordPress 6.9.4:

    <span class="menu-counter"><span class="count">4</span></span>

    This should produce a rounded badge, whether you put it in a top-level menu or a submenu item. In practice, the code can vary slightly depending on the WordPress version and item. For example, the update counter badge on “Dashboard -> Updates” might look more like this:

    <span class="update-plugins count-1"><span class="update-count">1</span></span>

    Also, the frontend theme shouldn’t matter in this context, but if you’re using a custom admin color scheme or an admin theme, that could be an issue. It could be that the admin theme doesn’t have the right styles for badges in submenus. You could test that by briefly deactivating any custom admin themes and/or switching to the default admin color scheme in your profile.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.