[wp-trac] [WordPress Trac] #33199: Admin Menu Items Break
WordPress Trac
noreply at wordpress.org
Thu Sep 3 11:24:16 UTC 2015
#33199: Admin Menu Items Break
----------------------------+---------------------------------
Reporter: atomicjack | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.3.1
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
----------------------------+---------------------------------
Comment (by raffjones):
You can fix this with CSS:
{{{
function chromefix_admin_init()
{
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome' ) !== false )
{
add_action( 'admin_print_styles', 'chromefix_print_css' );
}
}
function chromefix_print_css()
{
?>
<style type="text/css" media="screen">
#adminmenu {
transform: translateZ(0);
}
</style>
<?php
}
add_action( 'admin_init', 'chromefix_admin_init' );
}}}
Add that to your theme's functions.php file and it will sort the problem.
If you just want a plugin to do it: https://github.com/raffjones/chrome-
admin-menu-fix
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33199#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list