Title: Enable or Disable
Last modified: March 25, 2021

---

# Enable or Disable

 *  [ketandebroy](https://wordpress.org/support/users/ketandebroy/)
 * (@ketandebroy)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/enable-or-disable-3/)
 * Hi … can I disable it for desktop view keeping active for mobile view?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fenable-or-disable-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [ngoclb](https://wordpress.org/support/users/ngoclb/)
 * (@ngoclb)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/enable-or-disable-3/#post-14465281)
 * 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.

 * ![](https://ps.w.org/wp-pleasewait/assets/icon-256x256.png?rev=2103101)
 * [WP PleaseWait - Loading Screen](https://wordpress.org/plugins/wp-pleasewait/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pleasewait/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pleasewait/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pleasewait/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pleasewait/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ngoclb](https://wordpress.org/support/users/ngoclb/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/enable-or-disable-3/#post-14465281)
 * Status: not resolved