Skip to content

Instantly share code, notes, and snippets.

@BeFiveINFO
Last active July 8, 2017 02:58
Show Gist options
  • Save BeFiveINFO/284bbf2d1a73ea8ba975 to your computer and use it in GitHub Desktop.
Save BeFiveINFO/284bbf2d1a73ea8ba975 to your computer and use it in GitHub Desktop.
WordPress Chrome Admin Menu Fix
<?php
/*
Plugin Name: Chrome Admin Menu Fix
Description: This plugin fixes the WordPress admin menu which is caused by the latest version of Google Chrome (45).
Version: 1.1
Author: Luke Williamson (note: this is a modified vesion)
Author URI: http://lukewilliamson.com.au
License: GPLv2
*/
// ommitted
// the original author asks for a coffee or beer if you like this fix. https://twitter.com/LukeWillAU
function chromefix_inline_css() { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); }
add_action('admin_enqueue_scripts', 'chromefix_inline_css');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment