test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • jonathaneustace Friend
    #150478

    Hi, I’d like to know how to remove “mobile version” from the website, I don’t want any other version of my site to be displayed besides the normal version.

    Which file do I have to modify to remove mobile version?

    Thanks

    Saguaros Moderator
    #340818

    Dear jonathaneustace!

    Please open the file templates/ja_kyaniteii/layouts/blocks/usertools/layout-switcher.php and try to find codes
    [PHP]//if (!($mobile = $this->mobile_device_detect())) return; [/PHP]
    and replace:
    [PHP] if (!($mobile = $this->mobile_device_detect())) return; [/PHP]

    Good luck

    markjw Friend
    #348321

    Hi all, I had trouble with TELINE III and PURITY II, defaulting to Mobile browser on some site visitors using IE8, but never with FF.
    I did not want any browsers or devices (iphone/android) to see the mobile version which has the links menu types. After trying many ways to accomplish, I found the best way was to modify the libs/mobile_device_detect.php file. In that file is a large CASE statement. If you change the $mobile_browser and $status return settings for ALL of the case statement sections as below, then your site will always show the desktop version and never show the mobile version for anyone who visits, regardless of the browser or device. This kind of defeats the purpose of the autodetection, but in some cases, as was for me, this may be desired behavior. Also FYI, I am running the IE8 compatiability extension on my site, but that did not seem to make much difference for me. Best of luck.

    $mobile_browser = false; // set mobile browser to false
    $status = ‘Desktop / full capability browser’;

    Saguaros Moderator
    #348501

    You acccess the conifguraton of the template, and choose the default value for the Iphone parameter and the Other Handheld Devices parameter

    Good luck

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

This topic contains 4 replies, has 3 voices, and was last updated by  Saguaros 14 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum