WordPress admin menu formatting issue

I’m having an issue with my admin menu in WordPress. As you can see in the image below the formatting of the menu is out of order. This happens whenever I first land on one of the admin pages but if I refresh the page the menu looks fine. I tried disabling my plugins but none of them seem to be causing the issue.

WordPress admin menu

1

Otto has suggested a fix in Chrome itself until the bug is resolved:

  • Go to chrome://flags/#disable-slimming-paint
  • Enable the “Disable slimming paint” option.
  • Ensure that the “Enable slimming paint” option below it is not turned on.
  • Relaunch Chrome.

If you don’t want to take this approach you can fix this with CSS:

function chromefix_inline_css()
{ 
  wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' );
}

add_action('admin_enqueue_scripts', 'chromefix_inline_css');

If you just want a plugin to do it: https://github.com/raffjones/chrome-admin-menu-fix

Leave a Comment