How to optimize on-the-fly theme switching for mobile browsers?
First of all, you should know that $_SERVER[‘HTTP_USER_AGENT’] is not fully reliable because its output is based on http request User-Agent header, and so it can be easily omitted or disguised. That said, sure your method will detect the majority of mobile requests, but be aware the mayority is not totality. Now, you know that … Read more