Home › Forums › WoodMart support forum › Call jquery
Call jquery
- This topic has 6 replies, 2 voices, and was last updated 5 years, 4 months ago by Artem Temos.
-
AuthorPosts
-
July 5, 2019 at 8:54 am #131439
Oriol DuarriParticipantHello,
I have problems making a call to the jquery library. The result is satisfactory, but then it gives me problems in other parts of the page, specifically with Revolution Slider.
The situation is this: I do not like the drop-down menu of the mobile version. I have removed the arrows and I have customized the click to make the whole drop-down button. This code I have placed in the Theme Settings, and there I also created the call to jquery. It works, but the Revolution Slider that I have on the main page stops working correctly. I have no choice but to delete the jquery call from the Theme Settings and then the menu is no longer drop-down.
When I place the call to jquery in a snippet, it works correctly as well,
Attachments:
You must be logged in to view attached files.July 5, 2019 at 9:03 am #131442
Oriol DuarriParticipantI forgot to show you the Revolution Slider error.
Attachments:
You must be logged in to view attached files.July 5, 2019 at 4:40 pm #131468
Artem TemosKeymasterHello,
Sorry, but we don’t know what is wrong with this code and why it conflicts with other plugins. It is not a theme problem so we can hardly advise you here.
Regards
July 8, 2019 at 2:51 pm #131825
Oriol DuarriParticipantHi,
Let me explain it again, the mobile nav menu have a template configuration that we need to change and don’t know how. Now, if you have an element with sub elements on the menu, in the mobile navigation shows an arrow and you have to click on the arrow for display the sub elements,
What we want is to being able to click on any site of the button, and not just on the arrow side, like seen in the screenshot: http://prntscr.com/oc64d5
Hope to explain me well,
ThanksJuly 8, 2019 at 10:06 pm #131827
Artem TemosKeymasterThere is no such option for our mobile menu. In this case, there will not be an ability to click on the actual parent link. It will show submenu dropdown but will not redirect you to the page what you are trying to click on.
July 9, 2019 at 7:37 am #131905
Oriol DuarriParticipantHi, that’s not a problem for us, our links have # and just displays a title for dropwdown the submenu elements, thats why we want this function for us,
July 9, 2019 at 11:56 am #131909
Artem TemosKeymasterTry to use the following JS code for this purpose
jQuery('.mobile-menu-tab').on('click', '.item-level-0 > a', function( e ) { e.preventDefault(); jQuery(this).parent().find('>.icon-sub-menu').click(); });
-
AuthorPosts
- You must be logged in to create new topics. Login / Register