function my_edit_toolbar($wp_toolbar) {
$wp_toolbar->remove_node('wp-logo'); //去掉Wordpress LOGO
$wp_toolbar->remove_node('site-name'); //去掉网站称号
$wp_toolbar->remove_node('updates'); //去掉更新提示
$wp_toolbar->remove_node('comments'); //去掉评论提示
$wp_toolbar->remove_node('new-content'); //去掉新建文件
$wp_toolbar->remove_node('top-secondary'); //用户信息
}
add_action('admin_bar_menu', 'my_edit_toolbar', 999);
<p id="footer-left" class="alignleft">
<?php
/**
* Filter the "Thank you" text displayed in the admin footer.
*
* @since 2.8.0
* @param string The content that will be printed.
*/
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://ym-in.com/">yuemei</a>.' ) . '</span>' );
?>
</p>
以上就是安达网络工作室关于《wordpress去掉自带的logo或者左侧栏的菜单方法》的一些看法。更多内容请查看本栏目更多内容!
Wordpress 版本:3.3.1 一. 去掉 index.php 1. 编写404.php 文件,上传保留到博客根目录(和wordpress 的 in...
WordPress能够经过一系列的工夫日期函数来管制工夫日期的输入,上面引见几个罕用的函数:1、the_date_xml()...
comments-ajax.js在cdn缓存后,很多人遇到无奈(应用ajax)回复的成绩。对此,我之前的做法只是制止cdn缓存...
概述 最近买了台效劳器,预备搭建集体博客,来继续更新本人的博客, 环境 效劳器操作零碎:CentOS 7.0 ...
一、成绩形容 1、19号手动晋级到wordpress4.1,21号早上7点看网站php探针,发现零碎负载过高,差不多在1到1...
WordPress显示文章题目的时分,当文章题目过长而且文章的题目又在主页显示时,假如发作换行的景象就显得不美...