Tagged: x
-
AuthorPosts
-
August 15, 2016 at 6:45 am #1131748
anothercharlesParticipantHi,
on the site http://www.klarerkopf.at/ I combined a one pager with submenus.
This works great on the desktop.When the mobile menu is shown, it is not possible to see the submenu anymore.
See Menu “Veranstaltungen” – the sub menus are not shown on a mobile (iPad or iPhone).
Thanks for your help
Charly
August 15, 2016 at 7:58 am #1131816
JoaoModeratorHi Charly,
I can confirm the issue on my end.
This is not a common issue on X Theme.
You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
If that does not work, please provide us your credentials in a private reply so we can take a look.
Thanks
Joao
August 15, 2016 at 12:09 pm #1132194
anothercharlesParticipantThis reply has been marked as private.August 15, 2016 at 2:29 pm #1132384
Nabeel AModeratorHi again,
To fix the issue please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
(function($) { var a = $('.x-sub-toggle'); a.each(function(){ b = $(this).parent(); $(this).insertAfter(b); }); })(jQuery);Then 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; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
August 15, 2016 at 3:13 pm #1132429
anothercharlesParticipantHi Nabeel,
Thanks for the quick reply.
I did what you wrote.
I checked – the script is loaded – the css is loaded.
But its not working – it is still immediately scrolling down when I open the submenu.Thanks for your help – could you please take a look again?
Best regards
CharlyAugust 16, 2016 at 3:15 am #1133159
RadModeratorHi there,
Please change this code
(function($) { var a = $('.x-sub-toggle'); a.each(function(){ b = $(this).parent(); $(this).insertAfter(b); }); })(jQuery);to this,
jQuery( function($) { $(document).ready( function(){ setTimeout( function() { $('.x-sub-toggle').each( function() { $(this).insertAfter( $(this).parent() ); } ); }, 500 ); } ); } );Hope this helps.
August 16, 2016 at 11:49 am #1133827
anothercharlesParticipantHi Rad,
Thx – it worx ;D You made my day 😉
August 16, 2016 at 12:39 pm #1133905
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1131748 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
