[Resolved] Force to show mobile version

Home Forums Support [Resolved] Force to show mobile version

Home Forums Support Force to show mobile version

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1303800
    Mikel Santesteban

    I made an small website with Generatepress and Elementor but i’ll be only for mobiles.
    Whan can I do if someone get to the website trough the computer. Can I make the only available view the mobile one?
    I’ts like a mobile APP so I don’t need to waste time making it responsable for all devices.
    – Force to show mobile version in desktop?
    – Show an alert about this in desktop?

    I’m open to any suggestions I could get.
    Thanks and regards,

    #1304209
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this filter a shot:

    add_filter( 'generate_meta_viewport', function() {
        return '<meta name="viewport" content="width=450">';
    } );

    Let me know ๐Ÿ™‚

    #1304531
    Mikel Santesteban

    Hi Tom,

    I tried this code but it didn’t work…

    What else can I try?

    Thanks and regards,

    #1304806
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to the site so we can take a look at alternative solutions
    You can edit your original topic and use the Site URL field to share the link privately,

    #1304942
    Mikel Santesteban

    Hi David,

    I just started designing the website so there is nothing else than a homepage. Anyway I uptdated the website URL.

    Thanks,

    #1304960
    David
    Staff
    Customer Support

    Might be simplest to:

    1. Design the site without columns.
    2. Set the Container Width to a mobile width eg. 420px (plus size phones).
    3. Set the Mobile Menu Breakpoint to a really high value ( eg. 5000px) so it always displays mobile menus.

    ?

    #1306000
    Mikel Santesteban

    Hi David,

    Thanks for the tip. I changed the design as you suggested and everything it’s great.

    Regards,

    #1306125
    David
    Staff
    Customer Support

    Awesome – glad to hear that ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.