Archived topic
Force to show mobile version
7 replies · Started by Mikel Santesteban on May 27, 2020
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,
Hi there,
Give this filter a shot:
add_filter( 'generate_meta_viewport', function() {
return '<meta name="viewport" content="width=450">';
} );
Let me know :)
Hi Tom,
I tried this code but it didn't work...
What else can I try?
Thanks and regards,
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,
Hi David,
I just started designing the website so there is nothing else than a homepage. Anyway I uptdated the website URL.
Thanks,
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.
?
Hi David,
Thanks for the tip. I changed the design as you suggested and everything it's great.
Regards,
Awesome - glad to hear that :)