Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

mobile reverts to default theme?

I'm testing my site and noticed that whatever theme I choose looks accurate on my desktop computer but when viewing on mobile it uses the standard theme. No matter what theme I choose it always reverts to that one standard theme on the mobil. Is this standard behavior? I thought the theme carries through on desktop and mobile.

Using Vanilla 2.1

Comments

  • @R08‌

    It depends on the theme settings.

    You can add this setting in conf/config.php

    $Configuration['Garden']['MobileTheme'] = 'NameofTheme';

    which will load the chosen theme to mobile devices.

    It should be OK, but depending on how a particular theme was written, it may throw up some issues.

    Alternatively, you can clone the mobile theme, customise it, and then set that theme as your mobile option.

  • I will look into it. What's strange is that it happens with all themes. Even when using the default Vanilla ones. I thought that maybe this is somehow default behaviors of Vanilla. Will look into it more and try your advice.

  • I think it is default behaviour.

    The default Vanilla mobile theme is optimised for mobile devices.

    There is no guarantee that a desktop based theme would work 'as is' on a mobile device (although it might well do so.)

    I think the idea is to make sure that from the off you have a workable mobile site, then if you want to theme/customise it, it is easy to do so.

  • well that makes sense. i want to say that this is a new 2.1 feature but maybe I'm wrong. anyways that clears it up. Thanks!

  • peregrineperegrine MVP
    edited November 2014

    @R08 said:
    well that makes sense. i want to say that this is a new 2.1 feature but maybe I'm wrong. anyways that clears it up. Thanks!

    no its the same in 2.0.x older versions. also depends on the mobile device how it shows up as well.

    http://vanillaforums.org/discussion/26490/tutorial-how-to-create-a-new-mobile-theme

    boootstrap theme and the other responsive themes and vrijvlinders mobile themes display better in mobile, after you make the config statement change.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.