There is a plugin for something in WordPress. This way, you can disable specific plugins for mobile users. WordPress doesn’t load inactive plugins when someone enters your site. It loads all active plugins and it will load stylesheets and scripts according to the plugin. Boost your ecommerce site with WooCommerce Amazon Affiliates plugin
All good plugins load only when it is needed. It is often difficult for authors of the plugins to guess whether you need plugin. They try to load the files in these situations. Some users who want to score more in speed and performance test of Google, they often need to disable specific plugins. Let’s take a look at how to disable WordPress plugins for mobile users.
You may also want to check out Pearl, a Premium Corporate, Multiuse Theme for WordPress.
How to Activate Plugin Organizer?
First of all, you have to install and turn on Plugin Organizer. It is a very powerful WordPress plugin. When you disable or reorder plugins, it may lead to unusual behavior and conflicts which could make your site inaccessible. Be sure to backup your site completely before you reorder or disable any plugin. Visit Plugin Organizer > Settings once it is activated to configure settings of plugin. Turn these options on along with default settings –
- Selective mobile plugin loading
- Selective plugin loading
To save changes, click “Save Settings” button.
Create e Must-Use Plugin
A must-use plugin is required by the Plugin Organizer to work properly. It will automatically create the same for you. You will want to create it yourself if it doesn’t work.
Let’s find out if plugin can create MU plugin properly.
You can go to Plugins > Installed Plugins. You will find a new link “Must-Use” and see the MU plugins on the site by clicking on it. If you don’t get the link to Must-Use plugin or plugin itself, it means plugin organizer couldn’t create the file and you have to do it on your own.
First of all, you have to connect with FTP client or File Manager in cPanel. Go to /wp-content/mu-plugins/ folder. If not, create one.
Then, go to “/wp-content/plugins/plugin-organizer/lib/” folder and download the file “PluginOrganizerMU.class.php’” to the PC.
Next, go to “/wp-content/mu-plugins/” folder and upload file from the PC. Now the Plugin Organizer can use the file to manage plugins on both desktop and mobile.
Disable Specific Plugins in Mobile Version
Plugin Organizer can easily disable any plugins for mobile users. Simply go to Plugin Organizer > Global Plugins. There are two columns on screen. First for “Available items” which lists all the plugins installed. Another one is for “Disabled items” with disabled mobile boxes and disabled standard.
First of all, click on “Disabled Mobile” box and expand it. Drag and drop plugins you need to disable from the column available to the disabled mobile box. Click on “Save” button after adding plugins. Now the plugin organizer will disable such plugins on the mobile site.
You may also read our guide to add Stats Dashboard to WordPress