I want to remove how it adds 32px to the top of the HTML tag. It’s dumping it there with a STYLE tag right at the end with !important.
It’s damn impossible to override it, because there are no hooks or HTML and wordpress is setting it with like 5 css rules :/
What you are seeing is probably produced by
_admin_bar_bump_cb()
.From quick look at code it includes following instructions inline in
WP_Admin_Bar
class:Check out David Walsh’s solution:
https://davidwalsh.name/remove-wordpress-admin-bar-css
This way you can still show the admin bar, but implement your own CSS!