Looking for the v10 manual? Visit our new user's guide!
 
Search Descriptions Version
 
 
This article applies to: MultiStore

How do I disable the built-in Mobile skin?


Synopsis
The built-in Mobile skin is enabled by default so mobile devices view a skin that is trimmed down and formatted to be viewed by these devices. This can be disabled if desired.

Procedure
For 9.3 and higher:

Set the Mobile.IsEnabled AppConfig to false.

For 9.2 and earlier:

Clear the MobileDevice table in the database to disable the Mobile skin switching that occurs when the site is viewed from a device in the list. You can do this by running the following query in the Admin console Configuration > Advanced > Run SQL window (Copy/Paste the following into your Run SQL window, press Submit ):

SELECT * INTO dbo.MobileDeviceOld
FROM dbo.MobileDevice
TRUNCATE TABLE dbo.MobileDevice

This will also transfer the devices into another table in case you ever decide to re-enable the Mobile skin.

To re-enable the Mobile skin, Copy/Paste the following into your Run SQL window, press Submit ):

SET IDENTITY_INSERT dbo.MobileDevice ON
INSERT INTO dbo.MobileDevice (MobileDeviceID, UserAgent, Name)
SELECT * from dbo.MobileDeviceOld
SET IDENTITY_INSERT dbo.MobileDevice OFF