Reply To: After switching desktop theme from mobile theme

Home Forums Any Mobile Theme Switcher After switching desktop theme from mobile theme Reply To: After switching desktop theme from mobile theme

#1443
Pieter
Guest

Hi there, I have exactly the same problem. For now, I changed any-mobile-theme-switcher on line 92. It adds a cookie which expires after session is closed. The cookie value is prioritized over the session value. This is my replace code. I hope we’ll find a solution incorporated in the next update:

——————————- line 92 —————————-
if (@$_GET[‘am_force_theme_layout’]){
$_SESSION[‘am_force_theme_layout’] = $_GET[‘am_force_theme_layout’];
setcookie(‘am_force_theme_layout’, $_SESSION[‘am_force_theme_layout’], 0, ‘/’);
}
if ($_COOKIE[‘am_force_theme_layout’]!=”)
$_SESSION[‘am_force_theme_layout’] = $_COOKIE[‘am_force_theme_layout’];