Skip to content

Instantly share code, notes, and snippets.

@johnnya23
Created March 29, 2021 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnya23/ccf6fd679f69b17445adf9ff6c102569 to your computer and use it in GitHub Desktop.
Save johnnya23/ccf6fd679f69b17445adf9ff6c102569 to your computer and use it in GitHub Desktop.
<?php
function JMA_child_admin_enqueue_css_js()
{
$upload = wp_upload_dir();
$upload_dir = $upload['baseurl'];
wp_enqueue_style('childmegamenu', $upload_dir . '/maxmegamenu/style.css');
$output = 'a.mega-menu-link {pointer-events:none!important}';
wp_add_inline_style('childmegamenu', $output);
}
add_action('admin_enqueue_scripts', 'JMA_child_admin_enqueue_css_js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment