Tagged: x
-
AuthorPosts
-
July 6, 2016 at 5:56 am #1074536
sentifuxParticipantHi there and a great THAN!X for all your work done on your theme! Referring to post #390218 I successfully changed my mobile menu’s behaviour, but the submenu does not open when clicking the down-arrow (the entry takes me to the anchor on my site, instead). Any ideas 😉 ? Kind regards, Malte // http://www.maltekreutzfeldt.de, all newest versions of WP, X, CST
July 6, 2016 at 6:59 am #1074610
ChristopherModeratorHi there,
Upon checking your account, you only have one topic. Sorry I don’t know which thread you’re referring to, please provide us with its URL.
Thanks.
July 6, 2016 at 8:25 am #1074727
sentifuxParticipantHej Christopher,
In your forum, post #390218 has the URL https://community.theme.co/forums/topic/mobile-menu-ui-improvement-for-one-page-navigation/
My question is how to keep the behaviour of the tweaked mobile menu (that is, responding to OnReleaseTouch rather than onTouch), but make the submenu accordion open again if I touch on the down-arrow. After inserting the code from the post above, I cannot enter the submenu anymore.
Kind regards! m.
July 6, 2016 at 1:55 pm #1075218
Nabeel AModeratorHi again,
Thanks for updating the thread! Please 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
(function($) { var a = $('.x-sub-toggle'); var b = a.parent(); a.insertAfter(b); })(jQuery);Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
July 8, 2016 at 7:40 am #1077829
sentifuxParticipantNabeel, Hi & and thank you for your answer. Unfortunately, it does not work… any other idea? Regards, M.
July 8, 2016 at 8:29 pm #1078734
RadModeratorHi there,
Moving the toggle element will remove the bindings too. That will not work since the parent element is the one that initiate scrolling. Which means, two feature is active on the same link.
You shouldn’t add URL to the parent menu, or else, the only first action will be triggered.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1074536 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
