In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of deleting the WordPress suffix in the background title, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
The default suffix of WordPress background title (title) shows-WordPress. If you want to hide this suffix, you can delete this suffix by adding the following code to the current theme functions.php:
Remove the "- WordPress" from the background title
/ / remove the "--WordPress" add_filter ('admin_title',' zm_custom_admin_title', 10, 2) from the background title; function zm_custom_admin_title ($admin_title, $title) {return $title.' <'. Get_bloginfo ('name');}
Remove the "- WordPress" from the login title
/ / hide the "WordPress" add_filter ('login_title',' zm_custom_login_title', 10, 2) in the background title; function zm_custom_login_title ($login_title, $title) {return $title.' < '.get_bloginfo (' name');}
Attached: hide other words and icons related to WordPress in the background
Hide the WordPress flag in the upper left corner of the background
/ / hide the WordPress flag function hidden_admin_bar_remove () {global $wp_admin_bar; $wp_admin_bar- > remove_menu ('wp-logo');} add_action (' wp_before_admin_bar_render', 'hidden_admin_bar_remove', 0) in the upper left corner
Block footer WordPress version information
/ / block footer WordPress version information function change_footer_admin () {return';} add_filter ('admin_footer_text',' change_footer_admin', 9999); function change_footer_version () {return';} add_filter ('update_footer',' change_footer_version', 9999)
Remove items from the WordPress dashboard
Function remove_dashboard_meta () {remove_meta_box ('dashboard_incoming_links',' dashboard', 'normal'); remove_meta_box (' dashboard_plugins', 'dashboard',' normal'); remove_meta_box ('dashboard_primary',' dashboard', 'side'); remove_meta_box (' dashboard_secondary', 'dashboard',' normal') Remove_meta_box ('dashboard_quick_press',' dashboard', 'side'); remove_meta_box (' dashboard_recent_drafts', 'dashboard',' side'); remove_meta_box ('dashboard_recent_comments',' dashboard', 'normal'); remove_meta_box (' dashboard_right_now', 'dashboard',' normal') Remove_meta_box ('dashboard_activity',' dashboard', 'normal'); / / since 3.8} add_action (' admin_init', 'remove_dashboard_meta') Thank you for reading this article carefully. I hope it is helpful for everyone to share the method of deleting the WordPress suffix in the background title. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.