BuddyBoss Home – Web Support Forums Themes Boss. theme Mobile only (for tablets)

Viewing 9 posts - 1 through 9 (of 9 total)
  • Question

    #38562
    @mozartc

    Good 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

    #38565

    Anonymous
    @

    Hello @mozartc, those options are available in Appearance >> Customize
    Regards
    Varun dubey

    #38569
    @mozartc

    I 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

    #38571
    @mozartc

    I forgot to inform you my website. asks2.com/net (that one doesnt open in mobiles)

    #38572
    @mozartc

    Sorry, 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

    #38616
    @mozartc

    My tablet layout is seted to mobile. But it still opens as Desktop, in Ipad mini. How do I fix that? Thank you.

    #38625

    Alyssa
    Participant
    @alyssa-buddyboss

    @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);
    #38628
    @mozartc

    Great! It worked. Thanks a lot!

    #38697

    Anonymous
    @

    @mozartc @tjchester

    This should be fixed in v1.1.5, available now

Viewing 9 posts - 1 through 9 (of 9 total)
  • The question ‘Mobile only (for tablets)’ is closed to new replies.