BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Mobile only (for tablets)
- This topic has 8 replies, 4 contibutors, and was last updated 9 years, 7 months ago by Anonymous.
Question
April 6, 2015 at 10:48 am #38562@mozartcGood day, everyone!
Boss theme reads my tablet as a desktop. I would like tablets to be viewed only as mobile. I also dont want users to have the option to switch from tablet mobile view to desktop view. Please, how do I do that?
Best regards,
Mozart
Answers
April 6, 2015 at 11:52 am #38565@
AnonymousHello @mozartc, those options are available in Appearance >> Customize
Regards
Varun dubeyApril 6, 2015 at 12:12 pm #38569@mozartcI did this before. I ve seted tablets as mobile, but thats the problem, it doesnt read my ipad mini as a mobile.
But in this very moment I have a big problem! My website, mobile version simply doesnt open. There is an all white screen that says nothing. That happened yesterday also. Could you help me urgent? Desktop version is working properly.
Thanks a lot
April 6, 2015 at 12:13 pm #38571@mozartcI forgot to inform you my website. asks2.com/net (that one doesnt open in mobiles)
April 6, 2015 at 12:27 pm #38572@mozartcSorry, I just figured out what happened, please do not consider my last mesages about the website.
The only thing that still sounds like an error for me is that IPAD mini is still considered as a desktop, even after I ve seted “tablets as mobile”.
Thank you
April 7, 2015 at 10:44 am #38616@mozartcMy tablet layout is seted to mobile. But it still opens as Desktop, in Ipad mini. How do I fix that? Thank you.
April 7, 2015 at 11:47 am #38625@alyssa-buddyboss
AlyssaParticipant@mozartc i think we can fix this with jQuery override, try adding this to your child theme functions.php file:
function tablet_class(){ ?> <script> if ( /iPad|tablet/i.test(navigator.userAgent) ) { $( "body" ).addClass( "tablet"); } </script> <? } add_action('wp_footer','tablet_class',99999);
April 7, 2015 at 12:21 pm #38628@mozartcGreat! It worked. Thanks a lot!
April 9, 2015 at 3:29 am #38697@
Anonymous@mozartc @tjchester
This should be fixed in v1.1.5, available now
- The question ‘Mobile only (for tablets)’ is closed to new replies.