Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Created October 19, 2023 10:04
Show Gist options
  • Save funky-monkey/993dc0f2de124d4dd44ba5493a215ab9 to your computer and use it in GitHub Desktop.
Save funky-monkey/993dc0f2de124d4dd44ba5493a215ab9 to your computer and use it in GitHub Desktop.
Menu items weghalen in Wordpress
function hide_wordpress_icon() {
echo "<style>#wp-admin-bar-wp-logo, #wp-admin-bar-comments {
border: 0; clip: rect(0 0 0 0); height: 1px;margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }</style>";
}
add_action('admin_head', 'hide_wordpress_icon');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment