• Về minhduy.vn
  • Đăng ký Hosting
  • Thiết kế Website
  • Khuyến mãi HOT
Hướng Dẫn Sử Dụng Dịch Vụ - Minh Duy Solutions
  • Trang chủ
  • Hosting
    • Hướng dẫn Hosting cPanel
    • Hướng dẫn Hosting DirectAdmin
  • Tên miền
  • Website
    • Hướng dẫn WordPress
    • Hướng dẫn Webmaster
  • Email Doanh Nghiệp
    • Office 365
    • Google Work Space
    • Email Zimbra
  • VPS – Máy chủ
    • Hướng dẫn Linux
    • Hướng dẫn DirectAdmin
  • Hướng dẫn chung
  • Góc ICT
No Result
View All Result
  • Trang chủ
  • Hosting
    • Hướng dẫn Hosting cPanel
    • Hướng dẫn Hosting DirectAdmin
  • Tên miền
  • Website
    • Hướng dẫn WordPress
    • Hướng dẫn Webmaster
  • Email Doanh Nghiệp
    • Office 365
    • Google Work Space
    • Email Zimbra
  • VPS – Máy chủ
    • Hướng dẫn Linux
    • Hướng dẫn DirectAdmin
  • Hướng dẫn chung
  • Góc ICT
No Result
View All Result
Hướng Dẫn Sử Dụng Dịch Vụ - Minh Duy Solutions
No Result
View All Result
Home Hướng dẫn Website Hướng dẫn WordPress

Ẩn các thông báo trong trang quản trị WordPress

Minh Duy Solutions by Minh Duy Solutions
28/09/2021
Reading Time: 2 mins read
156 8
A A
0
wp notices
508
SHARES
1.6k
VIEWS
Share on FacebookShare on Twitter

– Bạn là một dev có tâm, bạn không muốn khách hàng phải nhìn thấy những thông báo vô nghĩa, gây khó chịu

– Bạn là một người khó tính không muốn phân tâm bởi những thông báo cập nhật, đăng ký, hết hạn…

– Bạn muốn có một dashboard admin gọn gàng, sạch sẽ

Thì với những đoạn script sau sẽ giải quyết mọi vấn đề của bạn.

Lưu ý: Chúng tôi sẽ không xóa những thông báo này mà chỉ ẩn nó đi

/* Remove Copyright
/* ------------------------------------ */
add_action('admin_head', 'vf_admin_style');
function vf_admin_style() {
    echo '<style>

    /* WP logo */
    #wp-admin-bar-wp-logo {display: none!important;}

    /* Ads banner */
    #sidebar-container, #i18n_promo_box, #blc-sidebar, 
    .acf-columns-2 .acf-column-2, .settings_page_autoptimize #autoptimize_admin_feed, 
    #drag-to-feature-image .inner-sidebar, 
    #adminmenu a[href="update-core.php"], #informationdiv, .omni_admin_sidebar, .wdpun-notice, 
    #wp-smush-invalid-member, .wfmrs, .fm_pro_btn, .premium-box,
    #dgwt_wcas_performance-tab, .dgwt-wcas-premium-only,
    .wpstg_fivestar, #fc-sidebar {display: none!important;}
    
    /* Update notice */
    #adminmenu #menu-plugins .update-plugins, #wp-admin-bar-updates {display:none!important;}
    
    input[name="plugin_status"]:not([value="upgrade"]) ~ .wp-list-table.plugins .plugin-update-tr {display:none!important;}
    input[name="plugin_status"]:not([value="upgrade"]) ~ .wp-list-table.plugins .update td, 
    input[name="plugin_status"]:not([value="upgrade"]) ~ .wp-list-table.plugins .update th, 
    input[name="plugin_status"]:not([value="upgrade"]) ~ .wp-list-table.plugins .updated td, 
    input[name="plugin_status"]:not([value="upgrade"]) ~ .wp-list-table.plugins .updated th {
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.1);
    }
    
    /* Dashboard page
    .index-php #screen-meta, .index-php #screen-meta-links, #try-gutenberg-panel, #welcome-panel, #dashboard_right_now, #dashboard_activity, #wpseo-dashboard-overview, #blc_dashboard_widget, #woocommerce_dashboard_recent_reviews, #woocommerce_dashboard_status, #dashboard_quick_press, #dashboard_primary {display: none!important;} */
    #wp-version-message {display: none!important;}
    
    /* WOOF */
    #woof_alert_woocs {display: none!important;}
    
    /* Yith */
    .yith-plugin-fw-panel #screen-meta,
    .yith-plugin-fw-panel #screen-meta-links {display:none!important;}
    
    /* Revolution Sliders */
    .rs-update-history-wrapper, .rs-update-notice-wrap, .tp-plugin-version, 
    #support_dw, #newsletter_dw, #templates_dw, #system_dw, #updates_dw, #activation_dw  {display:none!important;}

    /* Yoast */
    .yoast_premium_upsell_admin_block, #yoast-seo-dashboard-widget .wordpress-feed, .yoast_premium_upsell {display:none!important;}

    .update-nag, 
    #wpwrap .fs-notice, 
    #wpwrap .woo_slg_license-activation-notice,
    #wpwrap .vc_license-activation-notice,
    .updated.woocommerce-message {display: none!important;}
    
    /* Premmerce */
    #wpwrap .woo-permalink-manager-banner,
    #toplevel_page_premmerce .wp-submenu li:not(.wp-submenu-head):not(.wp-first-item), .update-plugins.fs-trial {display: none!important;}
    
    /* iTheme */
    #itsec-sidebar-widget-form-pro-upsell,
    #itsec-sidebar-widget-mail-list-signup,
    #itsec-sidebar-widget-form-backupbuddy-cross-promo,
    #itsec-sidebar-widget-form-sync-cross-promo,
    #itsec-sidebar-widget-form-support {display: none!important;}
    
    /* WPML */
    .error.wpml-admin-notice, #wpml_als_help_link {display: none!important;}

    /* NginX */
    #nginxchampuru-settings #postbox-container-1 {display: none!important;}

    /* Contact Form 7 */
    #wpcf7-contact-form-list-table #welcome-panel {display: none!important;}

    /* UpdraftPlus Backup/Restore */
    #updraft-dashnotice, .updraft-ad-container, #updraftcentral_cloud_connect_container, #updraft-navtab-addons, .updraft_advert_bottom {display: none!important;}
  </style>';
}

Copy và Paste đoạn Scripts trên vào file functions.php của theme hoặc child theme.  Vào Admin F5 để cảm nhận 1 dashboard vô cùng sạch sẽ.

Chúc các bạn thành công!

4.1/5 - (1751 bình chọn)
Source: code.vietfriend.info
Tags: WordPress
Share203Tweet127
Minh Duy Solutions

Minh Duy Solutions

Bài viết liên quan

stop wordpress user registration spam
Hướng dẫn WordPress

Hướng dẫn xoá hàng loạt user spam trên WordPress

23/05/2025
1.5k
thanh top woo c
Hướng dẫn Website

Hướng dẫn ẩn thanh Edit Product che mất tùy chọn khi đăng sản phẩm của WooComerce

24/09/2024
1.6k
flatsome theme 1
Hướng dẫn Website

Hướng dẫn tắt UXBuilder ở 1 số post type theme Flatsome

24/09/2024
1.6k
flatsome theme 1
Hướng dẫn Website

Bật UX Builder cho Custom post type trên theme Flatsome

24/09/2024
1.8k
Contact Form 7
Hướng dẫn Website

Chống spam cho plugin Contact Form 7

19/06/2024
1.6k
Contact Form 7
Hướng dẫn WordPress

Hướng dẫn cách truyền tiêu đề bài viết, sản phẩm vào Contact Form 7

19/06/2024
1.6k

Để lại một bình luận Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

No Result
View All Result

Recommended.

smtp la gi 1

Cấu hình SMTP mà không cần dùng plugin trên website WordPress

26/04/2022
1.6k
outlook la gi cach cai dat va su dung outlook cho nguoi moi bat dau

Outlook là gì? Cách cài đặt và sử dụng outlook cho người mới bắt đầu

24/09/2021
1.6k

Trending.

outlook là gì

Tạo rules trên Microsoft Outlook

29/05/2026
1.5k
outlook la gi cach cai dat va su dung outlook cho nguoi moi bat dau

Thay đổi thời gian cập nhật gửi nhận Email mới trên Outlook

29/05/2026
1.5k
cach tai toan bo email tren gmail ve may tinh de luu tru 4763

Cách tải toàn bộ email trên Gmail về máy tính để lưu trữ

10/04/2026
1.5k
Tên miền website là gì?

Vòng đời tên miền Việt Nam và Quốc Tế cập nhật năm 2026

07/04/2026
1.5k
binhluan

Cách ẩn comment trên Fanpage để tránh bị cướp khách hàng

09/12/2025
1.5k
Wiki Minh Duy Solutions

WIKI.MINHDUY.VN

Chuyên trang hướng dẫn sử dụng dịch vụ của Minh Duy Solutions

DMCA.com Protection Status

Danh mục

  • GSuite
  • aaPanel
  • Góc ICT
  • Thiết Kế Đồ Hoạ
  • SEO
  • Hướng dẫn WHMCS
  • Hướng dẫn WordPress
  • Email Zimbra
  • Hướng dẫn DirectAdmin
  • Hướng dẫn Hosting cPanel
  • Hướng dẫn Hosting
  • Office 365
  • Hướng dẫn Website
  • Hướng dẫn Linux
  • Hướng dẫn Hosting DirectAdmin
  • Google Work Space
  • Hướng dẫn Webmaster
  • Hướng dẫn máy chủ
  • Hướng dẫn Email Doanh Nghiệp
  • Hướng dẫn Tên miền
  • Hướng dẫn chung
  • Uncategorized

Thẻ

AFC apt-get update apt-get upgrade category chủ thể cPanel debian DirectAdmin email doanh nghiệp Environment Variables giải nén Google Workspace G Suite hosting ioncube khôi phục mật khẩu linux nginx nmap nodejs npm Office 365 OneDrive Outlook out of memory path Paypal phpmyadmin SMTP. GMail SSH sudo swap Symbolic Link tar tar.gz thông báo tên miền tên miền ubuntu user whois WooCommerce WordPress wordpress cơ bản wp rocket Zimbra
  • Về minhduy.vn
  • Đăng ký Hosting
  • Thiết kế Website
  • Khuyến mãi HOT

Copyright © Hướng dẫn Minh Duy Solutions

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
×
    No Result
    View All Result
    • Trang chủ
    • Hosting
      • Hướng dẫn Hosting cPanel
      • Hướng dẫn Hosting DirectAdmin
    • Tên miền
    • Website
      • Hướng dẫn WordPress
      • Hướng dẫn Webmaster
    • Email Doanh Nghiệp
      • Office 365
      • Google Work Space
      • Email Zimbra
    • VPS – Máy chủ
      • Hướng dẫn Linux
      • Hướng dẫn DirectAdmin
    • Hướng dẫn chung
    • Góc ICT

    Copyright © Hướng dẫn Minh Duy Solutions