Seeing mobile theme on desktop/desktop theme on mobile?
-
If you are using a caching plugin, you will need to configure it to work properly with WPtouch. If your caching plugin is not configured, or not configured properly, you will most encounter inconsistent behaviour where WPtouch shows for desktop visitors, or mobile visitors see your desktop site.
W3 Total Cache
- If you have “Browser Cache” enabled, please disable ‘Set expires header’ in the Browser cache settings to prevent Desktop/Mobile switch link issues.
- Go to the “Page Cache” settings under the Performance tab.
- Copy the list of mobile user agents found in our list of “User agent list for configuring cache plugins“.
- If you have added support for additional mobile devices in WPtouch’s Compatibility > Custom User Agents field, you must also include those user agents in the “Rejected User 5. Agents” area in W3 Total Cache.
- Scroll down to the “Rejected User Agents” field and paste the list of WPtouch default user agents, adding one per line.
- Save your changes.
- Go to the “Minify” settings under the Performance tab.
- Scroll down to the “Rejected User Agents” field and paste the list of WPtouch default user agents, adding one per line.
- Save your changes.
- Go to the “CDN” settings under the Performance tab.
- Scroll down to the “Rejected User Agents” field and paste the list of WPtouch default user agents, adding one per line.
- Save your changes.
- Finally, go to the W3 Total Cache “Dashboard” and select “Empty All Caches”.
Ensure that W3 Total Cache is selected in the plugins list in the Compatibility section of the WPtouch admin panel.
WP Super Cache
Note: The native support for the free version of WPtouch found in WP Super Cache (under the “Plugins” tab) must be disabled to prevent conflicts in WPtouch.
- In the Advanced tab of the WP Super Cache settings select “Mobile Device Support”* and click “Update Status”.
- Still in the Advanced tab, scroll down to the “Rejected User Agents” area. Paste the entire list of mobile user agents found in our list of “User agent list for configuring cache plugins” into the field and click “Save UA Strings”.
- If you have added support for additional mobile devices in WPtouch’s Compatibility > Custom User Agents field, you must also include those user agents in the “Rejected User Agents” area in WP Super Cache.
- In the “Contents” tab, click “Delete Cache” and “Delete Expired” to delete pages that were likely cached before adding the new list of rejected user agents.
- Ensure that WP Super Cache is selected in the plugins list in the Compatibility section of the WPtouch admin panel.
WP Rocket
In the “Basic Options” of WP Rocket’s settings page, make sure “Enable caching for mobile devices.” is deselected. Ensure that WP Rocket is selected in the plugins list in the Compatibility section of the WPtouch admin panel.
Please see the user manual for additional information.
WP Engine
Please contact WPEngine and ask them to exclude the user agents found in the “User agent list for configuring cache plugins“.
- The topic ‘Seeing mobile theme on desktop/desktop theme on mobile?’ is closed to new replies.