Shafeeque
Shafeeque

Reputation: 563

Wordpress Admin Side Menu messed up

Recently I noticed that Dashboard Menu Items lost the actual styles. It looks messed up now. once we click refresh it will be OK. but in page load again the same happens.Wordpress Dashboard Menu Messed up Please see the image attached.

Upvotes: 0

Views: 948

Answers (2)

Md. Saidur Rahman Milon
Md. Saidur Rahman Milon

Reputation: 2911

It is worked for me, just add the bellow code in your functions.php

function admin_menu_fix() {
echo '<style>
#adminmenu { transform: translateZ(0); }
</style>';
}
add_action('admin_head', 'admin_menu_fix');

Ref: https://code.google.com/p/chromium/issues/detail?id=509179#c37

Upvotes: 5

user1438038
user1438038

Reputation: 6077

It is a known bug in Chrome. You can apply this bug to fix the problem or wait for an official fix.

The bugfix is a simple plug-in, applying a style, such that:

<?php
/*
Plugin Name: Chrome Admin Menu Fix
Description: Quick fix for the Chrome 45 admin menu display glitches
Author: Steve Jones for The Space Between / Samuel Wood / Otto42
Author URI: http://the--space--between.com
Version: 2.1.0
*/

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

add_action('admin_enqueue_scripts', 'chromefix_inline_css');
?>

Upvotes: 0

Related Questions