{"id":4023071,"date":"2013-08-13T03:43:57","date_gmt":"2013-08-13T03:43:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/can-you-disable-a-plugin-on-mobile-devices-with-code\/"},"modified":"2016-08-21T03:52:52","modified_gmt":"2016-08-21T03:52:52","slug":"can-you-disable-a-plugin-on-mobile-devices-with-code","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/can-you-disable-a-plugin-on-mobile-devices-with-code\/","title":{"rendered":"Can you Disable a plugin on Mobile Devices with Code?"},"content":{"rendered":"<p>I have this plugin called &#8220;WP FLOAT&#8221;, I want to disable it when it detects a small screen size, lets say smaller than 400px. Is there a line of PHP code I can paste in one of the plugin&#8217;s files to make this happen?<\/p>\n<p>These are the only files for the plugin:<\/p>\n<p>wp-float\/wp-float(.)php<\/p>\n<p>wp-float\/readme(.)txt<\/p>\n<p>wp-float\/js\/jquery.hoverIntent.minified(.)js<\/p>\n<p>wp-float\/js\/jquery.easing(.)js<\/p>\n<p>wp-float\/js\/wp-float-button(.)js<\/p>\n<p>wp-float\/js\/jquery.floater.2.2(.)js<\/p>\n<p>wp-float\/js\/button-wpfloat(.)php<\/p>\n<p>What would I paste and in which file? Thanks<\/p>\n","protected":false},"template":"","class_list":["post-4023071","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4023071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4023071\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4023071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}