After switching desktop theme from mobile theme

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

This topic contains 6 replies, has 2 voices, and was last updated by  Dinesh 3 years, 10 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1411

    tet

    Hi 🙂
    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?

    Best wishes,
    tet

    #1412

    tet

    ah… My an operating environment is iPhone5.

    Best,
    tet

    #1414

    Dinesh
    Keymaster

    Hi Tet,

    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

    Thanks
    .

    #1415

    tet

    yeah!

    I edited php.ini file, and It Perfectly works!
    Shorcode works too.
    thanks a lot 😀

    Best,
    tet.

    #1441

    rich

    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 advance

    #1443

    Pieter

    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’];

    #1444

    Dinesh
    Keymaster

    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.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘After switching desktop theme from mobile theme’ is closed to new replies.