Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using google chrome's user agent switcher and it seems like every 5 minutes or so the mobile detection fails and the desktop theme is rendered. I can fix this by clearing the cache.
Would you know of where to look to see what is causing this?
Comments
Comment #1
rag_gupta CreditAttribution: rag_gupta commentedI too faced similar problem. It would show mobile or desktop theme when the opposite is desired. Here is similar issue: https://drupal.org/node/2024885
Comment #2
MakeOnlineShop CreditAttribution: MakeOnlineShop commentedHave you found a solution to this problem ? Thanks.
Comment #3
rag_gupta CreditAttribution: rag_gupta commentedIt is happening in my single site only out of a couple of other d7 sites.
What I've done is to add this line in the last of custom_theme hook;
That is if it is not mobile then it'd return the default theme.