Viewing 1 replies (of 1 total)
  • Plugin Author ngoclb

    (@ngoclb)

    Absolutely, yes. You have 2 options to handle this:

    – By css: Just hide in on desktop view by media query

    
    @media screen and (min-width: 768px) {
      .pg-loading-screen {
         visibility: hidden !important;
         opatity: 0 !important;
         display: none !important;
      }
    }
    

    – By WP Hooks:
    You should have a function to check if the user session is desktop device or not, then add a custom filter to your functions.php like this:

    
    add_filter( 'wp_pleasewait_enable', function ($is_enable) {
      if ( is_on_desktop() ) { 
        return false; 
      }
      return $is_enable;
    }, 10, 1);
    
Viewing 1 replies (of 1 total)
  • The topic ‘Enable or Disable’ is closed to new replies.