wp_is_mobile() conflict with W3 Total Cache
-
I what to use the same theme for desktop and mobiles, so I use wp_is_mobile() function to, for example, change ads according the device.
But using W3 Total Cache, it caches the page according the first access. If the first access is with a smartphone, it will show mobile version in desktop, and if I first access with desktop, it will show desktop version in mobile devices.
Is there any way to solve it or choose the same desktop theme in User Agent Groups. I could duplicate the theme, but I should modify twice every time I make a change.Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_is_mobile() conflict with W3 Total Cache’ is closed to new replies.