May 13, 2013 at 8:08 pm #1411
I like this plugin, thank you for making this.
It works almost perfect.
But, after switching theme (to desktop theme from mobile theme using
<?php echo do_shortcode('[show_theme_switch_link]'); ?>link)
Then I click any page link, it back to mobile theme.
I can’t see desktop theme continuously.
How can I solve it?
Or is this default action?
tetMay 13, 2013 at 8:10 pm #1412
ah… My an operating environment is iPhone5.
tetMay 14, 2013 at 2:59 am #1414
Actually the theme should stay desktop theme. Only changes when, the user session is closed of user has clicked for mobile theme again.
We use session to handle this. I hope you server have session enabled.
Also can you send us your site url ? Will test it here as well
.May 14, 2013 at 7:33 am #1415
I edited php.ini file, and It Perfectly works!
Shorcode works too.
thanks a lot 😀
tet.May 20, 2013 at 8:24 pm #1441
I am having the same issue. But no sure if I set the right settings in my php.ini file. Could you give me a little guidance on what they should be in order to have sessions turned on.
Thanks in advanceMay 21, 2013 at 3:03 pm #1443
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 —————————-
$_SESSION[‘am_force_theme_layout’] = $_GET[‘am_force_theme_layout’];
setcookie(‘am_force_theme_layout’, $_SESSION[‘am_force_theme_layout’], 0, ‘/’);
$_SESSION[‘am_force_theme_layout’] = $_COOKIE[‘am_force_theme_layout’];May 21, 2013 at 3:26 pm #1444
Thanks Pieter for quick fix.
Ya, we are going to use cookie from next update. We are having many issues regarding session.
New update will be out this week.
The topic ‘After switching desktop theme from mobile theme’ is closed to new replies.