Tagged: x
-
AuthorPosts
-
October 27, 2016 at 5:25 am #1232914
maxg10ParticipantHey I am using renew stack, and I have setup some sub menu items, they work perfectly on a desktop machine or a laptop. However on a mobile device, phone or tablet the top level menu shows up fine but the submenu items do not open up when you click on the down arrow, it just takes you to that top level section. I guess it will be some custom CSS or Jqurey script that will be needed to fix this. Can you please help?
October 27, 2016 at 6:31 am #1232976
Paul RModeratorHi,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
October 27, 2016 at 8:52 am #1233147
maxg10ParticipantThis reply has been marked as private.October 27, 2016 at 8:54 am #1233151
maxg10ParticipantAlso on mobile devices, when you click on the burger menu icon, the menu does not close once you have selected the link you want to go to. Any help with this would also be greatly appreciated.
Thanks
MaxOctober 27, 2016 at 10:36 am #1233314
RupokMemberHi Max,
Please update your theme to latest version first and check again. Are you using any custom script?
Thanks!
October 28, 2016 at 4:23 am #1234549
maxg10ParticipantThis reply has been marked as private.October 28, 2016 at 5:24 am #1234615
Paul RModeratorHi Max,
You can try adding this in your custom css.
@media (max-width: 979px) { .x-sub-toggle>span { width: auto; right:10px; } .x-sub-toggle { width: 100px; } }The code widens the touch area to trigger the submenu.
Hope that helps
October 28, 2016 at 5:36 am #1234633
maxg10ParticipantHi thanks for the quick response.
That has not worked. The submenu still does not drop down, and the burger menu still does not close after you have selected a link.October 28, 2016 at 8:52 am #1234768
JoaoModeratorHi There
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
October 31, 2016 at 4:31 am #1237589
maxg10ParticipantThis reply has been marked as private.October 31, 2016 at 8:43 am #1237822
JoaoModeratorHi There,
Please add the following code to Appereance > Customizer > Custom > Javascript
(function($) { $(window).load(function(){ $('.x-navbar .x-nav-wrap.mobile a, .entry-content .content').on('click touchend', function() { $('.x-btn-navbar').trigger('click'); }) }); })(jQuery);Hope it helps,
Joao
November 1, 2016 at 5:10 am #1238947
maxg10ParticipantThank you so much 🙂
That worked great for closing the menu after a selection has been made. Still no joy with the sub menu drop down however?November 1, 2016 at 1:21 pm #1239531
Nabeel AModeratorHi again,
To fix the mobile drop down issue, just add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-sub-toggle { z-index: 9999 !important; } li.menu-item-has-children { position: relative !important; } .x-sub-toggle>span { top: 13px !important; margin-top: 0px !important; }Then add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery( function($) { $(document).ready( function(){ setTimeout( function() { $('.x-sub-toggle').each( function() { $(this).insertAfter( $(this).parent() ); }); },500); }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1232914 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
