Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete the WordPress suffix in the background title

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to delete the WordPress suffix in the background title. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

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! On how to delete the WordPress suffix in the background title to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report