Home › Forums › WoodMart support forum › Links on mobile menu
Links on mobile menu
- This topic has 11 replies, 2 voices, and was last updated 3 years ago by Elise Noromit.
-
AuthorPosts
-
March 22, 2021 at 10:56 pm #275590
italyanaParticipantHi,
I need your support, I used the following code, got from a post of you, into “Custom JS On document ready” to
I used the following code, which I had taken from your support post, to make sure that when a menu item is clicked. on the mobile version, with a submenu, you can expand without having to click on the arrow and this, works perfectly, but now I don’t know why, the menu items without submenus do not work and if I click they do not send me to the page, while the menu items with submenus they always work, how can I change the following code?
jQuery(‘.mobile-nav’).on(‘click’, ‘.site-mobile-menu > li > a’, function(e){
e.preventDefault();
jQuery(this).parent().find(‘.icon-sub-menu’).click();
});Thanks for your kind support
Andrea
March 23, 2021 at 10:18 am #275692
Elise NoromitMemberHello,
Please try this code:
jQuery('.mobile-nav').on('click', '.site-mobile-menu > li.menu-item-has-children > a', function(e){ e.preventDefault(); jQuery(this).parent().find('.icon-sub-menu').click(); });
If you have any questions please feel free to contact us.
Best Regards
March 23, 2021 at 10:50 am #275705
italyanaParticipantThank you very much Elise.
It works like a charm 🙂
Your help desk is the best!
Best Regards
AndreaMarch 23, 2021 at 4:09 pm #275799
Elise NoromitMemberWe are always happy to help you, write to us when you have any difficulties or issues with our theme.
We would be grateful for 5 stars rate on http://themeforest.net/downloads in case you are satisfied with our theme and customer service
Thank you in advance
April 11, 2021 at 9:39 am #281541
italyanaParticipantHello,
I recently updated your theme to the new version 6.0.2, but now the following code doesn’t work, how can fix it?
jQuery(‘.mobile-nav’).on(‘click’, ‘.site-mobile-menu > li.menu-item-has-children > a’, function(e){
e.preventDefault();
jQuery(this).parent().find(‘.icon-sub-menu’).click();
});Thanks for your kind support
Andrea
April 12, 2021 at 6:54 am #281725
Elise NoromitMemberHello,
Pleae replace the code with this one:
jQuery('.mobile-nav').on('click', '.wd-nav-mobile > li.menu-item-has-children > a', function(e){ e.preventDefault(); jQuery(this).parent().find(' > .wd-nav-opener').click(); });
Best Regards
April 12, 2021 at 9:23 am #281820
italyanaParticipantPerfect, it works fine.
The only thing is when I click on one link and then I click on other, the first link arrow remains selected.
Attachments:
You must be logged in to view attached files.April 12, 2021 at 6:11 pm #282084
Elise NoromitMemberHello,
Please please, provide your site admin access to the private area.
Best Regards
April 12, 2021 at 11:17 pm #282159
italyanaParticipantfollow you can find the information:
April 16, 2021 at 1:18 pm #283595
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .mobile-nav .wd-nav-opener.wd-active { background-color: transparent; color:#000000; }
Best Regards
April 16, 2021 at 1:52 pm #283604
italyanaParticipantHello Elise,
thank you, it works perfectly!
Best regards
Andrea
April 16, 2021 at 6:11 pm #283658
Elise NoromitMemberWe are always happy to help you, write to us when you have any difficulties or issues with our theme.
We would be grateful for 5 stars rate on http://themeforest.net/downloads in case you are satisfied with our theme and customer service
Thank you in advance
-
AuthorPosts
- You must be logged in to create new topics. Login / Register