博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
删除WordPress管理栏CSS
阅读量:2512 次
发布时间:2019-05-11

本文共 748 字,大约阅读时间需要 2 分钟。

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.

用它。 别客气。

翻译自:

转载地址:http://odpwd.baihongyu.com/

你可能感兴趣的文章
SQl server更新某阶段的匹配关系。
查看>>
go语言练习
查看>>
org.apache.jasper.JasperException: Unable to compile class for JSP
查看>>
centos中的配置文件 分类: B3_LINUX ...
查看>>
1.找两个数下标Two Sum
查看>>
牛客~~wannafly挑战赛19~A 队列
查看>>
MYSQL GTID使用运维介绍(转)
查看>>
5 -- Hibernate的基本用法 --2 2 Hibernate的数据库操作
查看>>
RAID
查看>>
Jquery.Sorttable 桌面拖拽自定义
查看>>
PSP
查看>>
身份证的最准确的正则表达式,绝对让你吃惊啊!
查看>>
14.python读写Excel
查看>>
MySQL备份类别
查看>>
JNI数据类型(转)
查看>>
mysql 主从数据同步
查看>>
ContentType的一些值
查看>>
哈希表
查看>>
Codeforces 1174C Ehab and a Special Coloring Problem
查看>>
java并发编程基础 --- 4.1线程简介
查看>>