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顺序搭建的博客都相当注重与读者之间的互动,以评论为例,为了进步读者的体验品质,有的博...
根本模板文件 style.css : CSS(款式表)文件index.php : 主页模板archive.php : Archive/Category模板404.ph...
家喻户晓,wordpress是基于php开发,在apache效劳下运转是最优秀的。然而,国际依然有很多主机上不能提供ap...
wordpress经过以后文章的ID获取文章的信息用的极多,在wordpress二次开发中,上篇文章说过,获取以后文章id...
有意中发现一款性能弱小的Wordpress代码高亮插件 – Crayon Syntaxer,我以为能够算是目前款式最多、易...