WordPress: Admin Sidebar Admin Menu Chrome Fix

For some reason the WordPress sidebar admin menu has gone a bit crazy in Google Chrome recently. Links and sub menus have been overlapping making it very hard to actually navigate to where you want!

Luckily it’s a simple fix, just put the following into your functions.php file and voila, fixed 🙂

// Chrome sidebar menu fix
add_action( 'admin_enqueue_scripts', 'chrome_fix' );
function chrome_fix() {
    if ( strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'Chrome' ) !== false ) {
        wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0) }' );
Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358