Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1074536
    sentifux
    Participant

    Hi 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

    #1074610
    Christopher
    Moderator

    Hi 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.

    #1074727
    sentifux
    Participant

    Hej 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.

    #1075218
    Nabeel A
    Moderator

    Hi 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!

    #1077829
    sentifux
    Participant

    Nabeel, Hi & and thank you for your answer. Unfortunately, it does not work… any other idea? Regards, M.

    #1078734
    Rad
    Moderator

    Hi 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!

  • <script> jQuery(function($){ $("#no-reply-1074536 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>