Tagged: x
-
AuthorPosts
-
February 26, 2017 at 8:29 pm #1386700
happydogsnycParticipantHi there –
My site is happydogsnyc.com/hd_504
When seeing it in a mobile browser, there are two problems:
1. The “Services” top-level menu is not touchable — the user must touch the down arrow to open the submenu. Compare this to the desktop version — where the entire Services link is active on hover. Any way to make it open on touch on the word Services, not just on the down arrow, on mobile?
2. The menu is correctly replaced with the hamburger icon on mobile. However, the spacing below the icon is much less than above, which doesn’t look nice. Any way to fix this?
Thanks!
February 26, 2017 at 10:25 pm #1386802
RupokMemberHi there,
Thanks for writing in!
#1. That’s usual and pretty expected behavior. Imagine if you had link for the menu “Services” then it should have opened the link. So the arrow is supposed to open the submenu.
#2. Looks like you have added the below code :
.x-btn-navbar { margin-top: 31px; }Let’s update this to :
.x-btn-navbar { margin-top: 12px; }Hope this helps.
February 27, 2017 at 8:52 am #1387314
happydogsnycParticipantThanks! For #1, actually what I expect is touching Services opens the submenu, just like touching the arrow does. I worry users will touch Services, nothing will happen, and get confused. Is there any way to make this the case?
February 27, 2017 at 10:08 am #1387426
Nabeel AModeratorHi again,
Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery(document).ready(function($){ $('.menu-item-has-children').on('touchend click', function(e) { $(this).find('.sub-menu').toggle(); }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
March 6, 2017 at 6:22 pm #1396958
happydogsnycParticipantThanks — but just tried it and cleared the cache and it didn’t work so well. In fact now the sub-menu doesn’t show when I click the down arrow. I just get a blue flash but no sub-menu.
March 6, 2017 at 6:24 pm #1396959
happydogsnycParticipantP.S. The site is now live at happydogsnyc.com/long-island-city (and I’ve removed the JavaScript code for the moment)
March 7, 2017 at 3:21 am #1397421
LelyModeratorHello There,
The submenu is opening when I checked on mobile. See attached screenshots.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1386700 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
