Disable WordPress Toolbar
If you want to remove the WordPress toolbar, you can use this snippet:
add_filter('show_admin_bar', '__return_false');
When using this snippet, the following code remains:
html { margin-top: 32px !important; }<br />
* html body { margin-top: 32px !important; }<br />
@media screen and ( max-width: 782px ) {<br />
html { margin-top: 46px !important; }<br />
* html body { margin-top: 46px !important; }<br />
}<br />
</style>
To remove this CSS code, you can use this statement:
remove_action('wp_head', '_admin_bar_bump_cb');