-
AuthorPosts
-
April 14, 2015 at 6:55 pm #249764
DonWattzParticipantOn the mobile menu drop down for instance on an iPhone, when I click the menu button, with three lines, I see all my main menu items. For the ones that have a sub menu, there is a down down arrow to the right. It seems like the only way to get the sub menu to pop up is to click those arrows. Is there any other way to have the sub menu appear rather than click the double down arrows. It is happening on all my sites but here are a few you can see.
http://www.krrphotography.com
http://www.twinbeachplayers.com
http://www.letsfightback.comApril 15, 2015 at 3:39 am #250014
Paul RModeratorHi,
Thanks for writing in!
To achieve that, you can add this under Custom > CSS in the Customizer.
@media (max-width: 979px){ body .sub-menu.collapse { display:block; } }Hope that helps.
April 15, 2015 at 10:23 am #250316
DonWattzParticipantNot exactly what I was hoping for. I don’t want all the sub menu items to be open once they click on the menu button.
April 15, 2015 at 1:13 pm #250458
ZeshanMemberHi there,
In that case, you can try one of these two workarounds:
1: Open only the first dropdown by default when the menu button is clicked (see: http://prntscr.com/6u4p7p). To achieve it, add following JS code under Custom > JavaScript in the Customizer:
jQuery(document).ready(function($) { $('.mobile > ul > .menu-item-has-children .x-sub-toggle').first().click(); });2: Open the submenu items when clicking the whole parent link and not just the arrows. To achieve it, add following JS code under Custom > JavaScript in the Customizer:
// Expand Submenus on Parent Menu Click (for mobiles) jQuery(document).ready(function($) { var subMenuLink = $('.x-navbar .mobile .x-nav li.menu-item-has-children > a'); subMenuLink.on('click touchstart', function(e) { e.preventDefault(); var $this = $(this); $this.find('.x-sub-toggle').off('click touchstart'); $this.closest('li.menu-item-has-children').toggleClass('x-active'); $this.siblings('.sub-menu').slideToggle(300); }); });Hope this helps. 🙂
Thank you.
April 15, 2015 at 1:16 pm #250462
DonWattzParticipantThe second one is perfect!
April 15, 2015 at 1:25 pm #250468
NicoModeratorGlad to hear that!
Let us know if you need anything else.
Thanks. Have a great day! 🙂
April 14, 2016 at 3:34 pm #883023
nolasmilesParticipantThis is yet another example of Themeco’s *amazing* support! I never would have imagined receiving customized CSS/JS for such a modest license fee. Blows my mind, 10/10 in my book.
April 15, 2016 at 1:35 am #883742
FriechModeratorYour satisfaction is a great compliment for us.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-249764 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
