Ẩn thông báo Image Optimizer by Elementor

Tôi không biết bạn có cảm thấy khó chịu khi Elementor liên tục hiện các thông báo quảng cáo để cài đặt plugin Image Optimizer by Elementor hay không?! Nhưng với tôi cảm thấy khá khó chịu nhất là việc hiển thị xong đã tắt rồi mà vẫn hiển thị lại liên tục, nếu bạn cũng cảm thấy khó chịu có thể sử dụng code tôi để dưới đây để ẩn ngay các thông báo về Image Optimizer by Elementor hoặc Elementor AI Image

Speed up your website with Image Optimizer by Elementor
Automatically compress and optimize images, resize larger files, or convert to WebP. Optimize images individually, in bulk, or on upload.

Bạn có thể add code sau vào file functions.php là xong

function vutruso_hide_elementor_nag_admin() {
	?>
      <style id="remove-nag">	
      /*
       * Hide Elementor image optimization ads when choosing the post's featured image on the backend, frontend       
      */      
        .elementor-control-notice.elementor-control-notice-type-info,  
        .e-notice--cta,
  	.e-featured-image-ai,
  	.e-image-ai-insert-media,
        .e-excerpt-ai{
              display: none!important;
      } 
  
/* 
 * Hide the first element with class "css-1hboo5q" and all elements with class "css-1hboo5q"  
 * You will get Image optimizer ads on Elementor > Home > Expand your design toolkit
*/		  
.css-1hboo5q:first-child,
.css-1hboo5q {
    opacity: 0!important; /* Force opacity to 0, ignoring inheritance */
    height: 258.36px;
    width: 401.9px;
    pointer-events: none; /* Disable pointer interactions */
    cursor: none; /* Remove cursor display */
    position: relative; /* Set positioning relative to its container */
    z-index: 1; /* Set stacking order to be above other elements */
}
  
/* 
 * Hide the "Generate with Elementor AI" button in Media Library
*/   
#e-image-ai-attachment-details, 
#e-image-ai-media-library {
      opacity: 0!important;/* Force opacity to 0, ignoring inheritance */
      pointer-events: none;/* Disable pointer interactions */
}
      </style>
	<?php
 } 
add_action( 'admin_head', 'vutruso_hide_elementor_nag_admin' );

Mặc dù các tính năng mới được Elementor tích hợp vào 1 plugin khác cũng có tác dùng để nhưng tôi đã sử dụng Shortpixel để nén ảnh rồi nên chúng khá vô dụng với tôi và liên tục hiển thị lại nên tôi cần ẩn chúng đi cho khuất mắt.

Nếu bạn thấy hữu ích vui lòng chia sẽ bài viết này với bạn bè của bạn và theo dõi fanpage Vũ Trụ Số để cập nhật các kiến thức mới nhất.

Xin cảm ơn.

5/5 - (13 votes)

donate Nếu bạn thấy bài viết có ích bạn có thể donate cho team hoặc chia sẻ bài viết này. Ngoài ra bạn có thể yêu cầu thêm bài viết tại đây
Đã copy
user

Yêu thích Võ thuật và Công nghệ thông tin, thích viết và chia sẽ về 2 lĩnh vực này thế thôi :D

Bài viết liên quan