Tagged: x
-
AuthorPosts
-
August 2, 2016 at 12:00 pm #1114040
jessebritoParticipantHello,
The topic title seems a bit silly, but let me explain: For a client’s website (which you can view here) I made a custom menu for all displays except mobile and in place, I’m using Superfly. Since Superfly is restricted to mobile devices, the website still needs the X theme mobile menu on desktop in place of the custom menu.
The idea is that we don’t want to leave the website essentially menu-less in case anyone ever view the website on desktop, with mobile-sized windows.
What I’m asking is if there is a way to hide or disable the mobile menu based on touch devices instead of media queries breakpoints? I actually found another thread with similar question as mine, but the solution provided there doesn’t work for me.
Thanks, and have a nice day!
August 2, 2016 at 12:49 pm #1114114
RupokMemberHi there,
Thanks for writing in! To detect touch device, you need to use Modernizr or any other plugin that could detect the touch device properly and use some CSS within the condition to hide the menu. You can try utilizing this – https://wordpress.org/plugins/modernizr/
Unfortunately this kind of customization is out of our support scope and we can’t assist more on this.
Have a nice day!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1114040 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
