A version or two back, WordPress decided to add a toolbar for logged in users on the display side that's about the site's theme. I get why they did it but it's an annoyance to me -- I don't care to see it. To accomplish this task, WordPress injects the following into every page:
一两个版本,WordPress决定在显示侧添加一个用于登录用户的工具栏,该工具与网站的主题有关。 我知道他们为什么这么做,但这对我来说很烦人-我不在乎看到它。 为了完成此任务,WordPress在每个页面中注入了以下内容:
Bleh. You can remove this CSS and the admin bar using the following code which should be placed with your functions.php
file:
eh 您可以使用以下代码删除此CSS和管理栏,这些代码应与functions.php
文件放置在一起:
add_action('get_header', 'remove_admin_login_header');function remove_admin_login_header() { remove_action('wp_head', '_admin_bar_bump_cb');}
Use it. You're welcome.
用它。 别客气。
翻译自: